mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -04:00
Add api client call to email users that are already registered
This commit is contained in:
@@ -75,6 +75,11 @@ class UserApiClient(BaseAPIClient):
|
||||
endpoint = '/user/{0}/email-verification'.format(user_id)
|
||||
self.post(endpoint, data=data)
|
||||
|
||||
def sent_already_registered_email(self, user_id, to):
|
||||
data = {'email': to}
|
||||
endpoint = '/user/{0}/email-already-registered'.format(user_id)
|
||||
self.post(endpoint, data=data)
|
||||
|
||||
def check_verify_code(self, user_id, code, code_type):
|
||||
data = {'code_type': code_type, 'code': code}
|
||||
endpoint = '/user/{}/verify/code'.format(user_id)
|
||||
|
||||
Reference in New Issue
Block a user