Betalogin casinsensitive email
This commit is contained in:
parent
d0bceda44e
commit
c22238e5a6
|
|
@ -25,7 +25,7 @@ class BetaLogin(relay.ClientIDMutation):
|
||||||
|
|
||||||
# Login with email
|
# Login with email
|
||||||
if '@' in username:
|
if '@' in username:
|
||||||
user = User.objects.get(email=username)
|
user = User.objects.get(email__iexact=username)
|
||||||
if user:
|
if user:
|
||||||
username = user.username
|
username = user.username
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue