diff options
author | Loïc Le Ninan <loic.leninan@gmail.com> | 2014-06-09 15:14:23 +0200 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-06-13 10:23:07 -0500 |
commit | 0742e11dff487e1af27652fcf63f7d53322018cd (patch) | |
tree | 82ccd63f72a30795baed0bda855dcd0e743de2d6 /mediagoblin/plugins/ldap/forms.py | |
parent | b9d990ac6a401d95eb25a006cd78a51d5cf0ff5a (diff) | |
download | mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.tar.lz mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.tar.xz mediagoblin-0742e11dff487e1af27652fcf63f7d53322018cd.zip |
Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired.
Diffstat (limited to 'mediagoblin/plugins/ldap/forms.py')
-rw-r--r-- | mediagoblin/plugins/ldap/forms.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/plugins/ldap/forms.py b/mediagoblin/plugins/ldap/forms.py index 7ec1479e..1f1439ab 100644 --- a/mediagoblin/plugins/ldap/forms.py +++ b/mediagoblin/plugins/ldap/forms.py @@ -22,19 +22,19 @@ from mediagoblin.auth.tools import normalize_user_or_email_field class RegisterForm(wtforms.Form): username = wtforms.HiddenField( '', - [wtforms.validators.Required(), + [wtforms.validators.InputRequired(), normalize_user_or_email_field(allow_email=False)]) email = wtforms.TextField( _('Email address'), - [wtforms.validators.Required(), + [wtforms.validators.InputRequired(), normalize_user_or_email_field(allow_user=False)]) class LoginForm(wtforms.Form): username = wtforms.TextField( _('Username'), - [wtforms.validators.Required(), + [wtforms.validators.InputRequired(), normalize_user_or_email_field()]) password = wtforms.PasswordField( _('Password'), - [wtforms.validators.Required()]) + [wtforms.validators.InputRequired()]) |