diff options
author | Jessica T <xray7224@googlemail.com> | 2013-04-12 22:07:44 +0100 |
---|---|---|
committer | Jessica T <xray7224@googlemail.com> | 2013-04-12 22:07:44 +0100 |
commit | b2c8dbcf8507811fe931a48722ed9c8b530bcdae (patch) | |
tree | 65aa45b9cacc3db17c7e4ca1beaab5b79c0f8165 /mediagoblin/auth/forms.py | |
parent | 36748921c27deb3f8c9d88f9b7a3c368a427d418 (diff) | |
download | mediagoblin-b2c8dbcf8507811fe931a48722ed9c8b530bcdae.tar.lz mediagoblin-b2c8dbcf8507811fe931a48722ed9c8b530bcdae.tar.xz mediagoblin-b2c8dbcf8507811fe931a48722ed9c8b530bcdae.zip |
Allows you to use your username or email to login
Diffstat (limited to 'mediagoblin/auth/forms.py')
-rw-r--r-- | mediagoblin/auth/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/auth/forms.py b/mediagoblin/auth/forms.py index 8f091d21..5484c178 100644 --- a/mediagoblin/auth/forms.py +++ b/mediagoblin/auth/forms.py @@ -64,9 +64,9 @@ class RegistrationForm(wtforms.Form): class LoginForm(wtforms.Form): username = wtforms.TextField( - _('Username'), + _('Username or Email'), [wtforms.validators.Required(), - normalize_user_or_email_field(allow_email=False)]) + normalize_user_or_email_field()]) password = wtforms.PasswordField( _('Password'), [wtforms.validators.Required(), |