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

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",