-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Change default mode of Assert\Email
to "strict", for consistency with Mailer
#41855
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
Assert\Email
as Mailer is using for new Address()
#41850
Changing the default in the validator component would break things for projects that don't have |
Info is taken from symfony/symfony#41855 (comment) Maybe you should create an include to use the same wording for here and https://symfony.com/doc/4.4/reference/constraints/Email.html#mode
This PR was merged into the 4.4 branch. Discussion ---------- Minor change at email_validation_mode Info is taken from symfony/symfony#41855 (comment) Maybe you should create an include to use the same wording for here and https://symfony.com/doc/4.4/reference/constraints/Email.html#mode (But please merge #15467 first) Commits ------- cde5af7 Minor change at email_validation_mode
And changing recommendation for html5; see symfony/symfony#41855
This PR was merged into the 5.3 branch. Discussion ---------- Adding missing link target And changing recommendation for html5; see symfony/symfony#41855 Commits ------- 7653381 Adding missing link target
After some more thinking about it, I'm now suggesting:
|
My proposal:
Why?
|
I like your plan @javiereguiluz Who wants to create the PR on 5.4? |
Thank you for this issue. |
Hello? This issue is about to be closed if nobody replies. |
see #46518 |
… (xabbuh) This PR was merged into the 6.2 branch. Discussion ---------- [Validator] deprecate the loose e-mail validation mode | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | Fix #41855 | License | MIT | Doc PR | Commits ------- 2243d11 deprecate the loose e-mail validation mode
…password reset token We've updated to a new version of Symfony's validator and it wants us to choose this new validation mode as a future version is going to take the old mode away. For details of change see ticket at Symfony: symfony/symfony#41855
…password reset token We've updated to a new version of Symfony's validator and it wants us to choose this new validation mode as a future version is going to take the old mode away. For details of change see ticket at Symfony: symfony/symfony#41855 And details of the html5 validtion mode when it was introduced: https://symfony.com/blog/new-in-symfony-4-1-html5-email-validation
Description
Since Symfony Mailer is using
egulias/email-validator
to validate email addresses, I'm suggesting to make this the default forAssert\Email
.Why? When using a framework to let users enter their email address, my minimum expectation would be that the very same framework is able to send an email there ;-) In other words: Symfony needs to stay consistent.
See #41850 for an example I encountered in production - but I'm sure there are better ones ;-)
The text was updated successfully, but these errors were encountered: