Changeset 8180
- Timestamp:
- 08/01/08 16:18:17 (4 months ago)
- Files:
-
- django/trunk/django/contrib/auth/forms.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/auth/forms.py
r8162 r8180 15 15 help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), 16 16 error_message = _("This value must contain only letters, numbers and underscores.")) 17 password1 = forms.CharField(label=_("Password"), max_length=60,widget=forms.PasswordInput)18 password2 = forms.CharField(label=_("Password confirmation"), max_length=60,widget=forms.PasswordInput)17 password1 = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 18 password2 = forms.CharField(label=_("Password confirmation"), widget=forms.PasswordInput) 19 19 20 20 class Meta: … … 50 50 """ 51 51 username = forms.CharField(label=_("Username"), max_length=30) 52 password = forms.CharField(label=_("Password"), max_length=30,widget=forms.PasswordInput)52 password = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 53 53 54 54 def __init__(self, request=None, *args, **kwargs): … … 132 132 entering the old password 133 133 """ 134 new_password1 = forms.CharField(label=_("New password"), max_length=60,widget=forms.PasswordInput)135 new_password2 = forms.CharField(label=_("New password confirmation"), max_length=60,widget=forms.PasswordInput)134 new_password1 = forms.CharField(label=_("New password"), widget=forms.PasswordInput) 135 new_password2 = forms.CharField(label=_("New password confirmation"), widget=forms.PasswordInput) 136 136 137 137 def __init__(self, user, *args, **kwargs): … … 158 158 their old password. 159 159 """ 160 old_password = forms.CharField(label=_("Old password"), max_length=60,widget=forms.PasswordInput)160 old_password = forms.CharField(label=_("Old password"), widget=forms.PasswordInput) 161 161 162 162 def clean_old_password(self): … … 174 174 A form used to change the password of a user in the admin interface. 175 175 """ 176 password1 = forms.CharField(label=_("Password"), max_length=60,widget=forms.PasswordInput)177 password2 = forms.CharField(label=_("Password (again)"), max_length=60,widget=forms.PasswordInput)176 password1 = forms.CharField(label=_("Password"), widget=forms.PasswordInput) 177 password2 = forms.CharField(label=_("Password (again)"), widget=forms.PasswordInput) 178 178 179 179 def __init__(self, user, *args, **kwargs):
