mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 23:56:23 +01:00
@@ -3,7 +3,7 @@ from django.contrib.auth.models import User
|
|||||||
|
|
||||||
|
|
||||||
class RegistrationForm(forms.Form):
|
class RegistrationForm(forms.Form):
|
||||||
username = forms.CharField(max_length=32, required=True)
|
username = forms.CharField(max_length=30, required=True)
|
||||||
password = forms.CharField(widget=forms.PasswordInput(), required=True)
|
password = forms.CharField(widget=forms.PasswordInput(), required=True)
|
||||||
password_again = forms.CharField(widget=forms.PasswordInput(), required=True, label="Password Again")
|
password_again = forms.CharField(widget=forms.PasswordInput(), required=True, label="Password Again")
|
||||||
email = forms.CharField(max_length=254, required=True)
|
email = forms.CharField(max_length=254, required=True)
|
||||||
@@ -28,4 +28,4 @@ class RegistrationForm(forms.Form):
|
|||||||
if self.cleaned_data['email'] != self.cleaned_data['email_again']:
|
if self.cleaned_data['email'] != self.cleaned_data['email_again']:
|
||||||
raise forms.ValidationError(u'Emails do not match')
|
raise forms.ValidationError(u'Emails do not match')
|
||||||
|
|
||||||
return self.cleaned_data
|
return self.cleaned_data
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user