From c0301d97fe32dca0a499c0aa9cef53bf2f8d6ac0 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Tue, 23 Jan 2024 19:53:37 +0000 Subject: [PATCH] login username is always lowercase --- fet2020/authentications/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fet2020/authentications/forms.py b/fet2020/authentications/forms.py index 2fb3743e..5d36a06a 100644 --- a/fet2020/authentications/forms.py +++ b/fet2020/authentications/forms.py @@ -11,7 +11,7 @@ logger = logging.getLogger(__name__) class LoginForm(AuthenticationForm): def clean(self): - username = self.cleaned_data.get("username") + username = self.cleaned_data.get("username").lower() password = self.cleaned_data.get("password") if username is not None and password: