Skip to content

Conversation

@alanpoulain
Copy link

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/validator dependency in their project.

@AlexLisenkov AlexLisenkov self-assigned this May 11, 2022
@AlexLisenkov AlexLisenkov added the enhancement New feature or request label May 11, 2022
@alanpoulain
Copy link
Author

I've improved the coverage since I think you want to stay at 100%.

@alanpoulain
Copy link
Author

Friendly ping 🙂
Feel free to ask if you have questions about this PR.
If you don't have time to maintain this bundle, please tell me too, I can maintain a fork in my organization.

@AlexLisenkov
Copy link
Member

Hi Alan, thanks for your pull request. I opened some discussions a while ago, would you mind taking a look at that?

@alanpoulain
Copy link
Author

I don't see the discussions you are talking about. Could you link them?

$this->assertNoViolation();
}

public function testEmptyStringIsValid(): void
Copy link
Member

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 }}';
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants