use warning log for FIDO error
This commit is contained in:
parent
7e5deef34f
commit
b395c2ebd0
|
@ -94,7 +94,7 @@ def fido():
|
||||||
)
|
)
|
||||||
new_sign_count = webauthn_assertion_response.verify()
|
new_sign_count = webauthn_assertion_response.verify()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.exception(f"An error occurred in WebAuthn verification process: {e}")
|
LOG.warning(f"An error occurred in WebAuthn verification process: {e}")
|
||||||
flash("Key verification failed.", "warning")
|
flash("Key verification failed.", "warning")
|
||||||
# Trigger rate limiter
|
# Trigger rate limiter
|
||||||
g.deduct_limit = True
|
g.deduct_limit = True
|
||||||
|
|
|
@ -56,7 +56,7 @@ def fido_setup():
|
||||||
try:
|
try:
|
||||||
fido_credential = fido_reg_response.verify()
|
fido_credential = fido_reg_response.verify()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.exception(f"An error occurred in WebAuthn registration process: {e}")
|
LOG.warning(f"An error occurred in WebAuthn registration process: {e}")
|
||||||
flash("Key registration failed.", "warning")
|
flash("Key registration failed.", "warning")
|
||||||
return redirect(url_for("dashboard.index"))
|
return redirect(url_for("dashboard.index"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue