aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/basic_auth/forms.py
diff options
context:
space:
mode:
authorJakob Kramer <jakob.kramer@gmx.de>2015-03-07 21:48:13 +0100
committerBerker Peksag <berker.peksag@gmail.com>2015-03-12 21:57:53 +0200
commitf4686cde1662127b6a443b489f1d9f236060569c (patch)
tree384d7f85192ebc4ade08d7b723c9df59b1da8648 /mediagoblin/plugins/basic_auth/forms.py
parentc8c09bc43b91c0c78ad281e66aee713ff991909a (diff)
downloadmediagoblin-f4686cde1662127b6a443b489f1d9f236060569c.tar.lz
mediagoblin-f4686cde1662127b6a443b489f1d9f236060569c.tar.xz
mediagoblin-f4686cde1662127b6a443b489f1d9f236060569c.zip
wtforms.fields.TextField was deprecated
WTForms documentation: > The TextField alias for StringField is deprecated. Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
Diffstat (limited to 'mediagoblin/plugins/basic_auth/forms.py')
-rw-r--r--mediagoblin/plugins/basic_auth/forms.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/plugins/basic_auth/forms.py b/mediagoblin/plugins/basic_auth/forms.py
index 42b84bf3..9a6db226 100644
--- a/mediagoblin/plugins/basic_auth/forms.py
+++ b/mediagoblin/plugins/basic_auth/forms.py
@@ -20,7 +20,7 @@ from mediagoblin.auth.tools import normalize_user_or_email_field
class RegistrationForm(wtforms.Form):
- username = wtforms.TextField(
+ username = wtforms.StringField(
_('Username'),
[wtforms.validators.InputRequired(),
normalize_user_or_email_field(allow_email=False)])
@@ -28,14 +28,14 @@ class RegistrationForm(wtforms.Form):
_('Password'),
[wtforms.validators.InputRequired(),
wtforms.validators.Length(min=5, max=1024)])
- email = wtforms.TextField(
+ email = wtforms.StringField(
_('Email address'),
[wtforms.validators.InputRequired(),
normalize_user_or_email_field(allow_user=False)])
class LoginForm(wtforms.Form):
- username = wtforms.TextField(
+ username = wtforms.StringField(
_('Username or Email'),
[wtforms.validators.InputRequired(),
normalize_user_or_email_field()])
@@ -47,7 +47,7 @@ class LoginForm(wtforms.Form):
class ForgotPassForm(wtforms.Form):
- username = wtforms.TextField(
+ username = wtforms.StringField(
_('Username or email'),
[wtforms.validators.InputRequired(),
normalize_user_or_email_field()])