From b2f5cf92d0051b9bbb148fafcbff3b7a660cafa6 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Tue, 15 Nov 2022 10:56:23 -0600 Subject: [PATCH] change msg to be more clear --- files/routes/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/login.py b/files/routes/login.py index 65ae2866ab..36d2d51555 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -463,7 +463,7 @@ def post_reset(v): @app.get("/lost_2fa") @auth_desired def lost_2fa(v): - if v and not v.mfa_token: abort(400, "You don't have a 2FA token") + if v and not v.mfa_secret: abort(400, "You don't have 2FA enabled") return render_template( "lost_2fa.html", v=v