mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
add logging when webauthn cred registration fails
This commit is contained in:
@@ -49,6 +49,7 @@ def webauthn_complete_register():
|
|||||||
cbor.decode(request.get_data()),
|
cbor.decode(request.get_data()),
|
||||||
)
|
)
|
||||||
except RegistrationError as e:
|
except RegistrationError as e:
|
||||||
|
current_app.logger.info(f'User {current_user.id} could not register a new webauthn token - {e}')
|
||||||
return cbor.encode(str(e)), 400
|
return cbor.encode(str(e)), 400
|
||||||
|
|
||||||
user_api_client.create_webauthn_credential_for_user(
|
user_api_client.create_webauthn_credential_for_user(
|
||||||
|
|||||||
Reference in New Issue
Block a user