aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/forms.py
diff options
context:
space:
mode:
authorJef van Schendel <mail@jefvanschendel.nl>2011-12-02 23:48:40 +0100
committerJef van Schendel <mail@jefvanschendel.nl>2011-12-02 23:48:40 +0100
commit0d6e5dddeb38f6af7972485ae186532449719243 (patch)
tree0c83a3526520fa749b488a98779e711d175a4fb1 /mediagoblin/auth/forms.py
parent92417fc535c32d905957b4f5ef0fd2cfd8d78609 (diff)
downloadmediagoblin-0d6e5dddeb38f6af7972485ae186532449719243.tar.lz
mediagoblin-0d6e5dddeb38f6af7972485ae186532449719243.tar.xz
mediagoblin-0d6e5dddeb38f6af7972485ae186532449719243.zip
Add show-password checkbox and make it work
Diffstat (limited to 'mediagoblin/auth/forms.py')
-rw-r--r--mediagoblin/auth/forms.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/mediagoblin/auth/forms.py b/mediagoblin/auth/forms.py
index dcb6766c..4cd3e9d8 100644
--- a/mediagoblin/auth/forms.py
+++ b/mediagoblin/auth/forms.py
@@ -29,15 +29,7 @@ class RegistrationForm(wtforms.Form):
password = wtforms.PasswordField(
_('Password'),
[wtforms.validators.Required(),
- wtforms.validators.Length(min=6, max=30),
- wtforms.validators.EqualTo(
- 'confirm_password',
- _('Passwords must match.'))])
- confirm_password = wtforms.PasswordField(
- _('Confirm password'),
- [wtforms.validators.Required()],
- description=_(
- u"Type it again here to make sure there are no spelling mistakes."))
+ wtforms.validators.Length(min=6, max=30)])
email = wtforms.TextField(
_('Email address'),
[wtforms.validators.Required(),