Verify yourself to prove that you are not a ROBOT! After verification the page will apear. Thanks for understanding.
I use email address as a username in my Django application
USERNAME_FIELD = 'email' but email field is case-sensitive so:
USERNAME_FIELD = 'email'
email@example.com and TEST@EXAMPLE.COM are saved as two different users. It's normal or should I validate this somehow?
Lowercase the email before using it for operations like saving, comparing etc.
def save(self, *args, **kwargs):
self.email = self.email.lower()
return super(User, self).save(*args, **kwargs)
You should validate both email as same user and try to save username in lowercase always.
If you keep both email as different user, there are some usecases that need be handled manually, and it will increase overhead.
Suppose firstname.lastname@example.org mistakenly tried to login with Caps on, in that case he can never get access to his account.
You have to alway keep in mind not to use case-insensitive lookups on username field like iexact, icontains during development.