valid Password
private fun validPassword(pw: String, newPw: String, confirmPw: String): Boolean
Content copied to clipboard
Checks whether the user entered an old password (although verifying if the input is correct is delegated to a separate method) and whether the new password and its confirmation match.
Parameters
pw
Old password of the user.
newPw
New password of the user.
confirmPw
Confirmation of the new password of the user.