mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
remove debug
This commit is contained in:
@@ -110,15 +110,13 @@ class UserApiClient(NotifyAdminAPIClient):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
def send_verify_code(self, user_id, code_type, to, next_string=None):
|
def send_verify_code(self, user_id, code_type, to, next_string=None):
|
||||||
print(hilite("SEND VERIFY CODE"))
|
|
||||||
data = {"to": to}
|
data = {"to": to}
|
||||||
if next_string:
|
if next_string:
|
||||||
data["next"] = next_string
|
data["next"] = next_string
|
||||||
if code_type == "email":
|
if code_type == "email":
|
||||||
data["email_auth_link_host"] = self.admin_url
|
data["email_auth_link_host"] = self.admin_url
|
||||||
print(hilite(f"DATA {data}"))
|
|
||||||
endpoint = "/user/{0}/{1}-code".format(user_id, code_type)
|
endpoint = "/user/{0}/{1}-code".format(user_id, code_type)
|
||||||
print(hilite(f"ENDPOINT {endpoint}"))
|
|
||||||
current_app.logger.warn(hilite(f"Sending verify_code {code_type} to {user_id}"))
|
current_app.logger.warn(hilite(f"Sending verify_code {code_type} to {user_id}"))
|
||||||
self.post(endpoint, data=data)
|
self.post(endpoint, data=data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user