forked from CGM_Public/pretix_original
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:
|
if email is not None and password:
|
||||||
try:
|
try:
|
||||||
u = self.request.organizer.customers.get(email=email)
|
u = self.request.organizer.customers.get(email=email.lower())
|
||||||
except Customer.DoesNotExist:
|
except Customer.DoesNotExist:
|
||||||
# Run the default password hasher once to reduce the timing
|
# Run the default password hasher once to reduce the timing
|
||||||
# difference between an existing and a nonexistent user (django #20760).
|
# difference between an existing and a nonexistent user (django #20760).
|
||||||
|
|||||||
Reference in New Issue
Block a user