diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2012-10-16 16:03:29 +0800 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2012-10-16 16:03:29 +0800 |
| commit | bfcda7781a886ab2b7b41937c0f49c088f58a3d7 (patch) | |
| tree | a905b35d80dd88ab60db44517ef77511942ae9bf | |
| parent | 8f94d282232db238e4fca9aece6aae5acd6d7d1c (diff) | |
Fixed #19130 -- Made some of the auth forms more flexible for user models.
| -rw-r--r-- | django/contrib/auth/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index fbd8d0482e..6416b9b134 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -136,7 +136,7 @@ class AuthenticationForm(forms.Form): Base class for authenticating users. Extend this to get a form that accepts username/password logins. """ - username = forms.CharField(max_length=30) + username = forms.CharField(max_length=254) password = forms.CharField(label=_("Password"), widget=forms.PasswordInput) error_messages = { @@ -198,7 +198,7 @@ class PasswordResetForm(forms.Form): 'unusable': _("The user account associated with this email " "address cannot reset the password."), } - email = forms.EmailField(label=_("Email"), max_length=75) + email = forms.EmailField(label=_("Email"), max_length=254) def clean_email(self): """ |
