Remove token when submitted value is incorrect
This commit is contained in:
parent
de1823c854
commit
8c946d7026
|
@ -54,6 +54,7 @@ def mfa():
|
||||||
|
|
||||||
else:
|
else:
|
||||||
flash("Incorrect token", "warning")
|
flash("Incorrect token", "warning")
|
||||||
|
otp_token_form.token.data = None
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"auth/mfa.html",
|
"auth/mfa.html",
|
||||||
|
|
Loading…
Reference in New Issue