Django

Code

Changeset 8180

Show
Ignore:
Timestamp:
08/01/08 16:18:17 (4 months ago)
Author:
lukeplant
Message:

Fixed #3062 - removed arbitrary and unneeded max_length on password fields in auth forms.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/forms.py

    r8162 r8180  
    1515        help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."), 
    1616        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) 
    1919     
    2020    class Meta: 
     
    5050    """ 
    5151    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) 
    5353     
    5454    def __init__(self, request=None, *args, **kwargs): 
     
    132132    entering the old password 
    133133    """ 
    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) 
    136136 
    137137    def __init__(self, user, *args, **kwargs): 
     
    158158    their old password. 
    159159    """ 
    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) 
    161161     
    162162    def clean_old_password(self): 
     
    174174    A form used to change the password of a user in the admin interface. 
    175175    """ 
    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) 
    178178     
    179179    def __init__(self, user, *args, **kwargs):