From 8c946d702619bff637cb708b6034a5d7ec479c2a Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Fri, 22 May 2020 14:35:37 +0200 Subject: [PATCH] Remove token when submitted value is incorrect --- app/auth/views/mfa.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/auth/views/mfa.py b/app/auth/views/mfa.py index b7d68137..127aface 100644 --- a/app/auth/views/mfa.py +++ b/app/auth/views/mfa.py @@ -54,6 +54,7 @@ def mfa(): else: flash("Incorrect token", "warning") + otp_token_form.token.data = None return render_template( "auth/mfa.html",