diff --git a/app/auth/views/fido.py b/app/auth/views/fido.py index 579c1bc3..d2b374d1 100644 --- a/app/auth/views/fido.py +++ b/app/auth/views/fido.py @@ -94,7 +94,7 @@ def fido(): ) new_sign_count = webauthn_assertion_response.verify() 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") # Trigger rate limiter g.deduct_limit = True diff --git a/app/dashboard/views/fido_setup.py b/app/dashboard/views/fido_setup.py index e7b8f63e..ddc7717c 100644 --- a/app/dashboard/views/fido_setup.py +++ b/app/dashboard/views/fido_setup.py @@ -56,7 +56,7 @@ def fido_setup(): try: fido_credential = fido_reg_response.verify() 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") return redirect(url_for("dashboard.index"))