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

View file

@ -65,14 +65,14 @@ def fido():
uv_required=False uv_required=False
) )
new_sign_count = False is_webauthn_verified = False
new_sign_count = webauthn_assertion_response.verify()
try: try:
pass new_sign_count = webauthn_assertion_response.verify()
is_webauthn_verified = True
except Exception as e: except Exception as e:
flash('Key verification failed. Error: {}'.format(e), "warning") flash('Key verification failed. Error: {}'.format(e), "warning")
if new_sign_count != False: if is_webauthn_verified:
user.fido_sign_count = new_sign_count user.fido_sign_count = new_sign_count
db.session.commit() db.session.commit()
del session[MFA_USER_ID] del session[MFA_USER_ID]