sfdfsd
This commit is contained in:
parent
06770d5e85
commit
cabc44c391
3 changed files with 3 additions and 13 deletions
|
@ -633,8 +633,6 @@ def verifiedcolor(v):
|
|||
@validate_formkey
|
||||
def settings_security_post(v):
|
||||
if request.values.get("new_password"):
|
||||
if v.id in (PW1_ID,PW2_ID): return render_template("settings_security.html", v=v, error="This account is protected from password changes.")
|
||||
|
||||
if request.values.get("new_password") != request.values.get("cnf_password"):
|
||||
return render_template("settings_security.html", v=v, error="Passwords do not match.")
|
||||
|
||||
|
@ -731,8 +729,6 @@ def settings_security_post(v):
|
|||
@validate_formkey
|
||||
def settings_log_out_others(v):
|
||||
|
||||
if v.id in (PW1_ID,PW2_ID): abort(403)
|
||||
|
||||
submitted_password = request.values.get("password", "").strip()
|
||||
|
||||
if not v.verifyPass(submitted_password):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue