sfdfsd
This commit is contained in:
parent
914aa68d8e
commit
0af5df9625
1 changed files with 2 additions and 1 deletions
|
@ -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=" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue