mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 11:19:44 -04:00
post to get user by email
that way we won't store any PII in logs
This commit is contained in:
@@ -40,7 +40,7 @@ class UserApiClient(NotifyAdminAPIClient):
|
||||
return self.get("/user/{}".format(user_id))
|
||||
|
||||
def get_user_by_email(self, email_address):
|
||||
user_data = self.get('/user/email', params={'email': email_address})
|
||||
user_data = self.post('/user/email', params={'email': email_address})
|
||||
return user_data['data']
|
||||
|
||||
def get_user_by_email_or_none(self, email_address):
|
||||
|
||||
Reference in New Issue
Block a user