You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR;
On my DRF I only use emails as username
So for example [email protected] signs up.
Then every time he logs in, he needs to type in [email protected] [email protected] won't work
IMO, this shouldn't really be the case, I wouldn't allow [email protected] to sign up and then allow him another user with the same email but all lowercase (it doesn't work anyway, as the db would prevent it: django.db.utils.IntegrityError: duplicate key value violates unique constraint "users_customuser_email_key")
So the question is, should Knox support this (ie: be case insensitive) or should I be writing some extra functionality to make sure that all usernames (ie: email) are sent to my API as lowercase?
The text was updated successfully, but these errors were encountered:
TL;DR;
On my DRF I only use emails as username
So for example [email protected] signs up.
Then every time he logs in, he needs to type in [email protected]
[email protected] won't work
IMO, this shouldn't really be the case, I wouldn't allow [email protected] to sign up and then allow him another user with the same email but all lowercase (it doesn't work anyway, as the db would prevent it:
django.db.utils.IntegrityError: duplicate key value violates unique constraint "users_customuser_email_key"
)So the question is, should Knox support this (ie: be case insensitive) or should I be writing some extra functionality to make sure that all usernames (ie: email) are sent to my API as lowercase?
The text was updated successfully, but these errors were encountered: