fix 500 error i think

master
Aevann1 2022-12-20 23:15:24 +02:00
parent e80dab6bb9
commit d133ed0966
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ def settings_security_post(v):
token = request.values.get("2fa_remove") token = request.values.get("2fa_remove")
if not v.validate_2fa(token): if not token or not v.validate_2fa(token):
return render_template("settings/security.html", v=v, error="Invalid token.") return render_template("settings/security.html", v=v, error="Invalid token.")
v.mfa_secret = None v.mfa_secret = None