Make username case insensitive
This commit is contained in:
parent
6eb6a97919
commit
d856cd9a92
|
|
@ -20,6 +20,9 @@ class BetaLogin(relay.ClientIDMutation):
|
|||
password = kwargs.get('password_input')
|
||||
username = kwargs.get('username_input')
|
||||
|
||||
if username:
|
||||
username = username.lower().strip()
|
||||
|
||||
# Login with email
|
||||
if '@' in username:
|
||||
user = User.objects.get(email=username)
|
||||
|
|
|
|||
Loading…
Reference in New Issue