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...)
die-sync-es-backport
UnKnoWn 6 years ago committed by GitHub
parent 1fb249be35
commit 6792716903

@ -79,7 +79,7 @@ class ProfileForm(FlaskForm):
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)', [
Optional(),

Loading…
Cancel
Save