From ced02a8f20704f3f2cfae5a045df4d1bf95c3e63 Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Tue, 5 May 2020 14:26:26 -0700 Subject: [PATCH] remove debug code --- app/auth/views/fido.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/auth/views/fido.py b/app/auth/views/fido.py index 5ddb6586..1ab57b4b 100644 --- a/app/auth/views/fido.py +++ b/app/auth/views/fido.py @@ -65,14 +65,14 @@ def fido(): uv_required=False ) - new_sign_count = False - new_sign_count = webauthn_assertion_response.verify() + is_webauthn_verified = False try: - pass + new_sign_count = webauthn_assertion_response.verify() + is_webauthn_verified = True except Exception as e: flash('Key verification failed. Error: {}'.format(e), "warning") - if new_sign_count != False: + if is_webauthn_verified: user.fido_sign_count = new_sign_count db.session.commit() del session[MFA_USER_ID]