From fc001cfc2466c1cc12fcb582f5e17a9fbcd21d67 Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Tue, 5 May 2020 14:13:01 -0700 Subject: [PATCH] fix exception handling --- app/auth/views/fido.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/auth/views/fido.py b/app/auth/views/fido.py index 166d0eec..5ddb6586 100644 --- a/app/auth/views/fido.py +++ b/app/auth/views/fido.py @@ -51,8 +51,8 @@ def fido(): try: sk_assertion = json.loads(fido_token_form.sk_assertion.data) except Exception as e: - flash('Key registration failed. Error: Invalid Payload', "warning") - return redirect(url_for("dashboard.index")) + flash('Key verification failed. Error: Invalid Payload', "warning") + return redirect(url_for("auth.login")) challenge = session['fido_challenge'] credential_id = sk_assertion['id']