1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 18:09:59 +00:00

Current password required for all profile action

Current password is required for all actions on profile (email change, password change, any to be added later, etc...)
This commit is contained in:
UnKnoWn 2017-05-17 05:13:55 +08:00 committed by GitHub
parent 1fb249be35
commit 6792716903

View file

@ -79,7 +79,7 @@ class ProfileForm(FlaskForm):
Unique(User, User.email, 'Email is taken') Unique(User, User.email, 'Email is taken')
]) ])
current_password = PasswordField('Current password', [Optional()]) current_password = PasswordField('Current password', [Required()])
new_password = PasswordField('New password (confirm)', [ new_password = PasswordField('New password (confirm)', [
Optional(), Optional(),