LambdAuth icon indicating copy to clipboard operation
LambdAuth copied to clipboard

Email is case sensitive

Open martijnvdgrift opened this issue 8 years ago • 3 comments

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

martijnvdgrift avatar Mar 04 '16 14:03 martijnvdgrift

@martijnvdgrift Is there an easy fix for this?

helloniklas avatar Jun 01 '16 14:06 helloniklas

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

helloniklas avatar Jun 01 '16 14:06 helloniklas

@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.

matthewlehew avatar Jun 22 '16 14:06 matthewlehew