mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 22:06:55 +02: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:
parent
1fb249be35
commit
6792716903
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue