LambdAuth
LambdAuth copied to clipboard
Email is case sensitive
When registering an email with [email protected], [email protected] doesn't match when requesting a forgotten password
@martijnvdgrift Is there an easy fix for this?
@martijnvdgrift This also seems to be a problem when logging in.
@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.