login username is always lowercase
This commit is contained in:
@@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
class LoginForm(AuthenticationForm):
|
class LoginForm(AuthenticationForm):
|
||||||
def clean(self):
|
def clean(self):
|
||||||
username = self.cleaned_data.get("username")
|
username = self.cleaned_data.get("username").lower()
|
||||||
password = self.cleaned_data.get("password")
|
password = self.cleaned_data.get("password")
|
||||||
|
|
||||||
if username is not None and password:
|
if username is not None and password:
|
||||||
|
|||||||
Reference in New Issue
Block a user