From cdd666a23b6c1c25c0fec7fbf800492c036216dc Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 8 Jul 2016 11:00:23 +0100 Subject: [PATCH] Add api client call to email users that are already registered --- app/notify_client/user_api_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/notify_client/user_api_client.py b/app/notify_client/user_api_client.py index ac9e99c22..b6bb66c80 100644 --- a/app/notify_client/user_api_client.py +++ b/app/notify_client/user_api_client.py @@ -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)