diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
index f63dc7b..0a14a2b 100644
a
|
b
|
class UserCreationForm(forms.ModelForm):
|
13 | 13 | username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$', |
14 | 14 | help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), |
15 | 15 | error_message = _("This value must contain only letters, numbers and underscores.")) |
16 | | password1 = forms.CharField(label=_("Password"), max_length=60, widget=forms.PasswordInput) |
17 | | password2 = forms.CharField(label=_("Password confirmation"), max_length=60, widget=forms.PasswordInput) |
| 16 | password1 = forms.CharField(label=_("Password"), max_length=30, widget=forms.PasswordInput) |
| 17 | password2 = forms.CharField(label=_("Password confirmation"), max_length=30, widget=forms.PasswordInput) |
18 | 18 | |
19 | 19 | class Meta: |
20 | 20 | model = User |
… |
… |
class AuthenticationForm(forms.Form):
|
88 | 88 | return self.user_cache |
89 | 89 | |
90 | 90 | class PasswordResetForm(forms.Form): |
91 | | email = forms.EmailField(label=_("E-mail"), max_length=40) |
| 91 | email = forms.EmailField(label=_("E-mail")) |
92 | 92 | |
93 | 93 | def clean_email(self): |
94 | 94 | """ |
… |
… |
class AdminPasswordChangeForm(forms.Form):
|
164 | 164 | """ |
165 | 165 | A form used to change the password of a user in the admin interface. |
166 | 166 | """ |
167 | | password1 = forms.CharField(label=_("Password"), max_length=60, widget=forms.PasswordInput) |
168 | | password2 = forms.CharField(label=_("Password (again)"), max_length=60, widget=forms.PasswordInput) |
| 167 | password1 = forms.CharField(label=_("Password"), max_length=30, widget=forms.PasswordInput) |
| 168 | password2 = forms.CharField(label=_("Password (again)"), max_length=30, widget=forms.PasswordInput) |
169 | 169 | |
170 | 170 | def __init__(self, user, *args, **kwargs): |
171 | 171 | self.user = user |