From 6792716903c853e226c6e6e718a663a6bec4eb23 Mon Sep 17 00:00:00 2001 From: UnKnoWn Date: Wed, 17 May 2017 05:13:55 +0800 Subject: [PATCH] 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...) --- nyaa/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/forms.py b/nyaa/forms.py index 6a6508a..c22ef1c 100644 --- a/nyaa/forms.py +++ b/nyaa/forms.py @@ -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(),