-
Notifications
You must be signed in to change notification settings - Fork 944
Update password policy in reset password flow when the password does not meet the backend requirements #7434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
* Define internal password policy typings
* Define PasswordPolicyImpl * Add PasswordPolicyCustomStrengthOptions internal typing
* Update Auth to use PasswordPolicyImpl for validation * Rename _getPasswordPolicy to _getPasswordPolicyInternal
…tch API proposal (#7456) * Implement validatePassword * Fix allowedNonAlphanumericCharacters typing to match API proposal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LTGM.
There are some strings that show up more than once in the test, please consider putting them to a constant.
The strings that are duplicated are used in test cases that I didn't write, but I'll extract the strings that I also use into global constants to help clean up code style since these tests should have done this originally. |
Update the cached password policy when the reset password flow (confirmPasswordReset) receives a
PASSWORD_DOES_NOT_MEET_REQUIREMENTS
error.