-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add a ZxcvbnPasswordStrength constraint #10
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
base: master
Are you sure you want to change the base?
Conversation
85b3fbb to
aedc4dc
Compare
aedc4dc to
465e886
Compare
|
I've improved the coverage since I think you want to stay at 100%. |
465e886 to
f00c9ec
Compare
|
Friendly ping 🙂 |
|
Hi Alan, thanks for your pull request. I opened some discussions a while ago, would you mind taking a look at that? |
|
I don't see the discussions you are talking about. Could you link them? |
| $this->assertNoViolation(); | ||
| } | ||
|
|
||
| public function testEmptyStringIsValid(): void |
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.
Why did you decide an empty string is valid?
|
|
||
| protected static $errorNames = [self::ZXCVBN_PASSWORD_STRENGTH_ERROR => 'ZXCVBN_PASSWORD_STRENGTH_ERROR']; | ||
|
|
||
| public string $message = 'This password does not have enough strength.{{ warning }}{{ suggestions }}'; |
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.
Part of this bundle is localization. Is it possible for this string to be localized?
Hello!
I think it would be nice to have a validator constraint in this bundle too.
The validator is only registered if the user has the
symfony/validatordependency in their project.