Case insensitivity when validating repreated email addresses

This commit is contained in:
Raphael Michel
2017-08-24 10:19:11 +02:00
parent ef1b09671a
commit 45b9f1190f

View File

@@ -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.'))