We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d649fd5 commit a7db9eeCopy full SHA for a7db9ee
1 file changed
ietf/ietfauth/forms.py
@@ -15,7 +15,7 @@
15
16
class RegistrationForm(forms.Form):
17
18
- email = forms.EmailField(label="Your email")
+ email = forms.EmailField(label="Your email (lowercase)")
19
realm = 'IETF'
20
expire = 3
21
@@ -45,6 +45,8 @@ def clean_email(self):
45
email = self.cleaned_data.get('email', '')
46
if not email:
47
return email
48
+ if email.lower() != email:
49
+ raise forms.ValidationError(_('The supplied address contained uppercase letters. Please use a lowercase email address.'))
50
if User.objects.filter(username=email).count():
51
raise forms.ValidationError(_('An account with the email address you provided already exists.'))
52
0 commit comments