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

Incorrect validation for email addresses #5

Open
aHugues opened this issue Jun 12, 2020 · 0 comments
Open

Incorrect validation for email addresses #5

aHugues opened this issue Jun 12, 2020 · 0 comments

Comments

@aHugues
Copy link

aHugues commented Jun 12, 2020

Email addresses are validated using the regex /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

This is way to restrictive. For instance, example@oui.sncf would be incorrect, but this is a perfectly valid domain.

The only valid format is "something followed by @ followed by something".

Then, a validation email must be sent to the user.

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

No branches or pull requests

1 participant