Customer login: Normalize email addresses

This commit is contained in:
Raphael Michel
2021-06-03 16:46:56 +02:00
parent 96eabebc15
commit a4d9d7041c

View File

@@ -78,7 +78,7 @@ class AuthenticationForm(forms.Form):
if email is not None and password:
try:
u = self.request.organizer.customers.get(email=email)
u = self.request.organizer.customers.get(email=email.lower())
except Customer.DoesNotExist:
# Run the default password hasher once to reduce the timing
# difference between an existing and a nonexistent user (django #20760).