Skip to content
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

[Validator][Bug] Email Validation #18162

Closed
noniagriconomie opened this issue Mar 14, 2016 · 6 comments
Closed

[Validator][Bug] Email Validation #18162

noniagriconomie opened this issue Mar 14, 2016 · 6 comments

Comments

@noniagriconomie
Copy link
Contributor

Hi,

Just to know why a validation on email let

email1@gmail.com ; email2@me.com

pass as a valid email ?

I am on sf 2.8.2

Many thanks :)

@Mx-Glitter
Copy link
Contributor

Are you using the email validation with strict option? See here for more details: http://symfony.com/doc/current/reference/constraints/Email.html#strict

@noniagriconomie
Copy link
Contributor Author

@Triiistan hi ty

I think not, i will check and come back
But why is this false by default? it is an error or a required logic that 2 emails are valid

@linaori
Copy link
Contributor

linaori commented Mar 14, 2016

The best (and probably only) way to validate an email, is by sending an email towards it. Otherwise the strict=true will be sufficient. It's false by default as it requires a 3rd party library.

@jakzal
Copy link
Contributor

jakzal commented Mar 18, 2016

@noniagriconomie any news?

@noniagriconomie
Copy link
Contributor Author

I will check this we and come back

@noniagriconomie
Copy link
Contributor Author

@jakzal can not reproduce (validation does not pass even without strict=true),
it is a bit weird how i get this value in my DB :/
thanks anyway

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

No branches or pull requests

7 participants