aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/basic_auth/forms.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-05-24 18:09:57 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-05-24 18:09:57 -0700
commitf339b76a4ee04571bd0a94d20a5d53d7f3d8d235 (patch)
tree0d12a43f16ca907bf5e31b27b1abf949908b42b8 /mediagoblin/plugins/basic_auth/forms.py
parent9008e09941ee7621fc375edb485120a54abd6ad1 (diff)
downloadmediagoblin-f339b76a4ee04571bd0a94d20a5d53d7f3d8d235.tar.lz
mediagoblin-f339b76a4ee04571bd0a94d20a5d53d7f3d8d235.tar.xz
mediagoblin-f339b76a4ee04571bd0a94d20a5d53d7f3d8d235.zip
moving forgot_password views back to gmg/auth and cleanup
Diffstat (limited to 'mediagoblin/plugins/basic_auth/forms.py')
-rw-r--r--mediagoblin/plugins/basic_auth/forms.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/mediagoblin/plugins/basic_auth/forms.py b/mediagoblin/plugins/basic_auth/forms.py
index 8321c227..f389b21e 100644
--- a/mediagoblin/plugins/basic_auth/forms.py
+++ b/mediagoblin/plugins/basic_auth/forms.py
@@ -26,7 +26,7 @@ class RegistrationForm(wtforms.Form):
normalize_user_or_email_field(allow_email=False)])
password = wtforms.PasswordField(
_('Password'),
- [wtforms.validators.Optional(),
+ [wtforms.validators.Required(),
wtforms.validators.Length(min=5, max=1024)])
email = wtforms.TextField(
_('Email address'),
@@ -43,23 +43,3 @@ class LoginForm(wtforms.Form):
_('Password'),
[wtforms.validators.Required(),
wtforms.validators.Length(min=5, max=1024)])
-
-
-class ForgotPassForm(wtforms.Form):
- username = wtforms.TextField(
- _('Username or email'),
- [wtforms.validators.Required(),
- normalize_user_or_email_field()])
-
-
-class ChangePassForm(wtforms.Form):
- password = wtforms.PasswordField(
- 'Password',
- [wtforms.validators.Required(),
- wtforms.validators.Length(min=5, max=1024)])
- userid = wtforms.HiddenField(
- '',
- [wtforms.validators.Required()])
- token = wtforms.HiddenField(
- '',
- [wtforms.validators.Required()])