Skip to content
Browse files

Fixed #19130 -- Made some of the auth forms more flexible for user mo…

  • Loading branch information...
1 parent 8f94d28 commit bfcda7781a886ab2b7b41937c0f49c088f58a3d7 @freakboy3742 freakboy3742 committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/auth/
4 django/contrib/auth/
@@ -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)
Django member
claudep added a note Oct 16, 2012

in __init__, we already get the username field to set the label, what about to also set the max_length from the real username field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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):

0 comments on commit bfcda77

Please sign in to comment.
Something went wrong with that request. Please try again.