remove debug code

This commit is contained in:
devStorm 2020-05-05 14:26:26 -07:00
parent fc001cfc24
commit ced02a8f20
No known key found for this signature in database
GPG Key ID: D52E1B66F336AC57
1 changed files with 4 additions and 4 deletions

View File

@ -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]