-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
PasswordStrengthValidator
logic always return Weak
even for strong password
#57074
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
Comments
I tend to agree, and here is interesting reading I once read here "what is a right password" is a hard thing to tell, for humans between them and for machines as well ^^ |
|
It may be weak but having a strength of 0 (Very Weak) is not remarkable |
PasswordStrengthValidator
logic always return Weak
even for strong password
Hey, thanks for your report! |
Well, I had to create a custom password strength estimator constraint that uses Zxcvbn library for validation |
Hey, thanks for your report! |
Symfony version(s) affected
7.0.*
Description
I am encountering an issue with the PasswordStrength constraint in Symfony. While using the
PasswordStrength::STRENGTH_WEAK
level for password validation, even strong passwords are being flagged as "very weak" and preventing form submission.TestCase
#Q_81($r7
(This is just an example of the password used)How to reproduce
Create a registration form with email and password ensuring that password constraints is set to have
minScore
asPasswordStrength::STRENGTH_WEAK
then submit the form with a stronger password.The password to submit should contains uppercase, lowercase, specialchars and numbers but should not be more than 9 characters in length.
Possible Solution
The problem boils down to the
PasswordStrengthValidator::estimateStrength()
method on this code section:Additional Context
No response
The text was updated successfully, but these errors were encountered: