mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Case insensitivity when validating repreated email addresses
This commit is contained in:
@@ -50,7 +50,7 @@ class ContactForm(forms.Form):
|
||||
|
||||
def clean(self):
|
||||
if self.event.settings.order_email_asked_twice:
|
||||
if self.cleaned_data.get('email') != self.cleaned_data.get('email_repeat'):
|
||||
if self.cleaned_data.get('email').lower() != self.cleaned_data.get('email_repeat').lower():
|
||||
raise ValidationError(_('Please enter the same email address twice.'))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user