csm_web icon indicating copy to clipboard operation
csm_web copied to clipboard

Email case sensitivity

Open smartspot2 opened this issue 2 years ago • 0 comments

When creating new users, the email field seems to be case sensitive, allowing for two users to be created where one has the email "[email protected]" and the other with "[email protected]". This runs into a major issue with the Google OAuth, as the authentication system detects two different users with the same email, throwing an error, not allowing the user to log in and view anything at all.

This should be explored a little more though, as it seems like by formal specification, it's up to the mail server whether they view emails as case-sensitive or not (everything after the @ is always mandated to be lower case). This means Django's EmailField would understandably be case-sensitive as well.

smartspot2 avatar Jan 19 '23 05:01 smartspot2