mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Change name of the form and form field for consistency
Following PR review. Also update function name for update name of security key in user api client to be more specific.
This commit is contained in:
@@ -201,7 +201,7 @@ class UserApiClient(NotifyAdminAPIClient):
|
||||
|
||||
return self.post(endpoint, data=credential.serialize())
|
||||
|
||||
def update_webauthn_credential_for_user(self, *, user_id, credential_id, new_name_for_credential):
|
||||
def update_webauthn_credential_name_for_user(self, *, user_id, credential_id, new_name_for_credential):
|
||||
endpoint = f'/user/{user_id}/webauthn/{credential_id}'
|
||||
|
||||
return self.post(endpoint, data={"name": new_name_for_credential})
|
||||
|
||||
Reference in New Issue
Block a user