mirror of
https://github.com/simple-login/app.git
synced 2025-10-06 05:17:41 +08:00
use warning log for FIDO error
This commit is contained in:
parent
7e5deef34f
commit
b395c2ebd0
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue