mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Refactor into model
It’s generally an antipattern for the view layer code to be calling the API client directly.
This commit is contained in:
@@ -52,9 +52,7 @@ def webauthn_complete_register():
|
||||
current_app.logger.info(f'User {current_user.id} could not register a new webauthn token - {e}')
|
||||
return cbor.encode(str(e)), 400
|
||||
|
||||
user_api_client.create_webauthn_credential_for_user(
|
||||
current_user.id, credential
|
||||
)
|
||||
current_user.create_webauthn_credential(credential)
|
||||
|
||||
flash((
|
||||
'Registration complete. Next time you sign in to Notify '
|
||||
|
||||
Reference in New Issue
Block a user