mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
Stop passing the 'whole' user object when making changes to profile
This commit is contained in:
@@ -47,9 +47,9 @@ class UserApiClient(BaseAPIClient):
|
||||
users.append(User(user, max_failed_login_count=self.max_failed_login_count))
|
||||
return users
|
||||
|
||||
def update_user(self, user):
|
||||
data = user.serialize()
|
||||
url = "/user/{}".format(user.id)
|
||||
def update_user(self, user_id, **kwargs):
|
||||
data = dict(**kwargs)
|
||||
url = "/user/{}".format(user_id)
|
||||
user_data = self.put(url, data=data)
|
||||
return User(user_data['data'], max_failed_login_count=self.max_failed_login_count)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user