Allow case-insensitive email addresses when doing authentication

(imported from commit b52e39c7f706a2107b5d86e8e18293a46ed9e6ff)
This commit is contained in:
Zev Benjamin 2012-12-04 14:15:02 -05:00
parent a454417843
commit 02df4f76b6

View File

@ -17,7 +17,7 @@ class EmailAuthBackend(object):
return None
try:
user = User.objects.get(email=username)
user = User.objects.get(email__iexact=username)
if user.check_password(password):
return user
except User.DoesNotExist: