Tell api when mobile or email updated by colleague

So that API can send a confirmation email to the affected user
This commit is contained in:
Pea Tyczynska
2019-02-26 16:28:05 +00:00
parent d02061a9d8
commit 7da2ed4539
3 changed files with 13 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ ALLOWED_ATTRIBUTES = {
'email_address',
'mobile_number',
'auth_type',
'updated_by'
}
@@ -70,7 +71,6 @@ class UserApiClient(NotifyAdminAPIClient):
", ".join(disallowed_attributes)
))
data = dict(**kwargs)
url = "/user/{}".format(user_id)
user_data = self.post(url, data=data)
return User(user_data['data'], max_failed_login_count=self.max_failed_login_count)