mirror of
https://github.com/pretix/pretix.git
synced 2026-04-28 00:02:37 +00:00
Fix validation of duplicate emails being case-insensitive
This commit is contained in:
@@ -167,7 +167,7 @@ class RegistrationForm(forms.Form):
|
||||
|
||||
if email is not None:
|
||||
try:
|
||||
self.request.organizer.customers.get(email=email)
|
||||
self.request.organizer.customers.get(email=email.lower())
|
||||
except Customer.DoesNotExist:
|
||||
pass
|
||||
else:
|
||||
@@ -444,7 +444,7 @@ class ChangeInfoForm(forms.ModelForm):
|
||||
|
||||
if email is not None:
|
||||
try:
|
||||
self.request.organizer.customers.exclude(pk=self.instance.pk).get(email=email)
|
||||
self.request.organizer.customers.exclude(pk=self.instance.pk).get(email=email.lower())
|
||||
except Customer.DoesNotExist:
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user