From 4702f65abe6f2fdfa47efb37326f9a1587bab882 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Dec 2021 21:48:39 +0200 Subject: [PATCH] sfdfsd --- files/routes/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index c3e048d78..4e6c19435 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -632,7 +632,8 @@ def verifiedcolor(v): @auth_required @validate_formkey def settings_security_post(v): - if request.values.get("new_password") and v.id not in (PW1_ID,PW2_ID): + if request.values.get("new_password"): + if v.id in (PW1_ID,PW2_ID): return redirect("/settings/security?error=" + escape("This account is protected from password changes.")) if request.values.get( "new_password") != request.values.get("cnf_password"): return redirect("/settings/security?error=" +