This commit is contained in:
Aevann1 2021-12-31 14:15:51 +02:00
parent c3cf5ecaeb
commit 0334bc4556
10 changed files with 53 additions and 48 deletions

View file

@ -584,7 +584,7 @@ def verifiedcolor(v):
@validate_formkey
def settings_security_post(v):
if request.values.get("new_password"):
# if v.id == PW_ID: abort(403)
if v.id == PW_ID: abort(403)
if request.values.get("new_password") != request.values.get("cnf_password"):
return render_template("settings_security.html", v=v, error="Passwords do not match.")