mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
Fix case-sensitive email handling in password recovery
This commit is contained in:
@@ -283,7 +283,7 @@ class ResetPasswordForm(forms.Form):
|
|||||||
if 'email' not in self.cleaned_data:
|
if 'email' not in self.cleaned_data:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
self.customer = self.request.organizer.customers.get(email=self.cleaned_data['email'])
|
self.customer = self.request.organizer.customers.get(email=self.cleaned_data['email'].lower())
|
||||||
return self.customer.email
|
return self.customer.email
|
||||||
except Customer.DoesNotExist:
|
except Customer.DoesNotExist:
|
||||||
# Yup, this is an information leak. But it prevents dozens of support requests – and even if we didn't
|
# Yup, this is an information leak. But it prevents dozens of support requests – and even if we didn't
|
||||||
|
|||||||
Reference in New Issue
Block a user