mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Customer login: Normalize email addresses
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user