diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-20 14:04:02 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-20 14:28:43 -0700 |
commit | 39aa1db4d69eb2fb49da463f973484b501b3ee52 (patch) | |
tree | c4a1df1943338ba6cbab41e8de8edfd2e00b8904 /mediagoblin/edit/forms.py | |
parent | 4adc3a85dda878b40f44e07b2283d4c55c6c5d02 (diff) | |
download | mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.tar.lz mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.tar.xz mediagoblin-39aa1db4d69eb2fb49da463f973484b501b3ee52.zip |
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 | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index ef270237..c67180e9 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,15 @@ 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)]) |