mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Allow case-insensitive email addresses when doing authentication
(imported from commit b52e39c7f706a2107b5d86e8e18293a46ed9e6ff)
This commit is contained in:
parent
a454417843
commit
02df4f76b6
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user