diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-05-21 18:34:23 +0200 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-05-21 18:34:23 +0200 |
commit | d5e035e9193cb9c9faff0e8601e2908bf5285f9c (patch) | |
tree | 7cdc675b8b8e504f5f0087dd5b275fa596685406 /mediagoblin/edit/forms.py | |
parent | 6c1467d570a4da68ef8b4edac9aecdb9c87a61de (diff) | |
parent | 2ba7603469a80ccfc1c07ddebc53ad6c6f0a6f79 (diff) | |
download | mediagoblin-d5e035e9193cb9c9faff0e8601e2908bf5285f9c.tar.lz mediagoblin-d5e035e9193cb9c9faff0e8601e2908bf5285f9c.tar.xz mediagoblin-d5e035e9193cb9c9faff0e8601e2908bf5285f9c.zip |
Merge remote-tracking branch 'rodney757/change_pass'
* rodney757/change_pass:
fixed translation, and changed tabs to spaces, and change it so the user can view their password as they're typing.
modified change_pass tests
moved change pass to a seperate view and fixed issues 709
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r-- | mediagoblin/edit/forms.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index ef270237..3b2486de 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -59,17 +59,6 @@ class EditProfileForm(wtforms.Form): class EditAccountForm(wtforms.Form): - old_password = wtforms.PasswordField( - _('Old password'), - description=_( - "Enter your old password to prove you own this account.")) - new_password = wtforms.PasswordField( - _('New password'), - [ - wtforms.validators.Optional(), - wtforms.validators.Length(min=6, max=30) - ], - id="password") license_preference = wtforms.SelectField( _('License preference'), [ @@ -103,3 +92,16 @@ class EditCollectionForm(wtforms.Form): description=_( "The title part of this collection's address. " "You usually don't need to change this.")) + + +class ChangePassForm(wtforms.Form): + old_password = wtforms.PasswordField( + _('Old password'), + [wtforms.validators.Required()], + description=_( + "Enter your old password to prove you own this account.")) + new_password = wtforms.PasswordField( + _('New password'), + [wtforms.validators.Required(), + wtforms.validators.Length(min=6, max=30)], + id="password") |