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

Email is case sensitive #31

Open
martijnvdgrift opened this issue Mar 4, 2016 · 3 comments
Open

Email is case sensitive #31

martijnvdgrift opened this issue Mar 4, 2016 · 3 comments

Comments

@martijnvdgrift
Copy link

When registering an email with [email protected], [email protected] doesn't match when requesting a forgotten password

@helloniklas
Copy link

@martijnvdgrift Is there an easy fix for this?

@helloniklas
Copy link

@martijnvdgrift This also seems to be a problem when logging in.

@matthewlehew
Copy link

@helloniklas I don't have a PR or anything for this since I've just been glancing at the project, but a way to fix this would be to always apply .toUpperCase() to the input email address and store it in the database in all caps. So, regardless of how the user inputs the email address, it's going to be converted to (and compared in) uppercase.

I believe there's a risk with this approach when it comes to internationalization, however, and some Unicode characters.

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

3 participants