diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-11 16:16:41 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-20 08:25:45 -0700 |
commit | 402f43601164e26390cf7c78a383537eb009e499 (patch) | |
tree | 81faa99b1b98376bd541084472c13bd6e2bfdd20 /mediagoblin/edit/forms.py | |
parent | c62d174437445565b55b220396e7571a323a159c (diff) | |
download | mediagoblin-402f43601164e26390cf7c78a383537eb009e499.tar.lz mediagoblin-402f43601164e26390cf7c78a383537eb009e499.tar.xz mediagoblin-402f43601164e26390cf7c78a383537eb009e499.zip |
maybe have change password and email on same page
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r-- | mediagoblin/edit/forms.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 85c243a0..71f30520 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -61,10 +61,6 @@ class EditProfileForm(wtforms.Form): class EditAccountForm(wtforms.Form): - new_email = wtforms.TextField( - _('New email address'), - [wtforms.validators.Optional(), - normalize_user_or_email_field(allow_user=False)]) wants_comment_notification = wtforms.BooleanField( description=_("Email me when others comment on my media")) license_preference = wtforms.SelectField( @@ -111,3 +107,15 @@ class ChangePassForm(wtforms.Form): [wtforms.validators.Required(), wtforms.validators.Length(min=6, max=30)], id="password") + + +class ChangeEmailForm(wtforms.Form): + new_email = wtforms.TextField( + _('New email address'), + [wtforms.validators.Required(), + normalize_user_or_email_field(allow_user=False)]) + password = wtforms.PasswordField( + _('Password'), + [wtforms.validators.Required()], + description=_( + "Enter your password to prove you own this account.")) |