Ticket #3062: password-maxlength-removal.patch
File password-maxlength-removal.patch, 1.7 KB (added by , 18 years ago) |
---|
-
django/contrib/auth/forms.py
11 11 self.fields = ( 12 12 forms.TextField(field_name='username', length=30, maxlength=30, is_required=True, 13 13 validator_list=[validators.isAlphaNumeric, self.isValidUsername]), 14 forms.PasswordField(field_name='password1', length=30, maxlength=60,is_required=True),15 forms.PasswordField(field_name='password2', length=30, maxlength=60,is_required=True,14 forms.PasswordField(field_name='password1', length=30, is_required=True), 15 forms.PasswordField(field_name='password2', length=30, is_required=True, 16 16 validator_list=[validators.AlwaysMatchesOtherField('password1', _("The two password fields didn't match."))]), 17 17 ) 18 18 … … 110 110 def __init__(self, user): 111 111 self.user = user 112 112 self.fields = ( 113 forms.PasswordField(field_name="old_password", length=30, maxlength=30,is_required=True,113 forms.PasswordField(field_name="old_password", length=30, is_required=True, 114 114 validator_list=[self.isValidOldPassword]), 115 forms.PasswordField(field_name="new_password1", length=30, maxlength=30,is_required=True,115 forms.PasswordField(field_name="new_password1", length=30, is_required=True, 116 116 validator_list=[validators.AlwaysMatchesOtherField('new_password2', _("The two 'new password' fields didn't match."))]), 117 117 forms.PasswordField(field_name="new_password2", length=30, maxlength=30, is_required=True), 118 118 )