Remove token when submitted value is incorrect

This commit is contained in:
Sibren Vasse 2020-05-22 14:35:37 +02:00
parent de1823c854
commit 8c946d7026
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ def mfa():
else:
flash("Incorrect token", "warning")
otp_token_form.token.data = None
return render_template(
"auth/mfa.html",