Make username case insensitive

This commit is contained in:
Lorenz Padberg 2023-07-12 16:16:32 +02:00
parent 6eb6a97919
commit d856cd9a92
1 changed files with 3 additions and 0 deletions

View File

@ -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)