validPassword

private fun validPassword(pw: String, newPw: String, confirmPw: String): Boolean

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.