fix bug when 2fa toggle looked like it didnt apply

pull/2/head
Aevann1 2022-11-18 22:07:07 +02:00
parent bcfe98c295
commit 785fb28bb2
1 changed files with 1 additions and 0 deletions

View File

@ -462,6 +462,7 @@ def settings_security_post(v):
v.mfa_secret = None
g.db.add(v)
g.db.commit()
return render_template("settings/security.html", v=v, msg="Two-factor authentication disabled.")
@app.post("/settings/log_out_all_others")