From aa99fc622642cbdc61dcde38089926d74f38c7a4 Mon Sep 17 00:00:00 2001 From: creyD <15138480+creyD@users.noreply.github.com> Date: Thu, 26 Jun 2025 12:50:57 +0000 Subject: [PATCH] Adjusted files for isort & autopep --- creyPY/services/auth0/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/creyPY/services/auth0/utils.py b/creyPY/services/auth0/utils.py index 0e6d7d9..434f70f 100644 --- a/creyPY/services/auth0/utils.py +++ b/creyPY/services/auth0/utils.py @@ -146,19 +146,20 @@ def password_change_mail(email: str) -> bool: raise HTTPException(re.status_code, re.json()) return True + def user_password_change_ticket(user_id: str) -> str: re = requests.post( f"https://{AUTH0_DOMAIN}/api/v2/tickets/password-change", headers={"Authorization": f"Bearer {get_management_token()}"}, json={ - "user_id":user_id, + "user_id": user_id, "client_id": AUTH0_CLIENT_ID, "ttl_sec": 0, "mark_email_as_verified": False, - "includeEmailInRedirect": False + "includeEmailInRedirect": False, }, timeout=5, ) if re.status_code != 201: raise HTTPException(re.status_code, re.json()) - return re.json()['ticket'] + return re.json()["ticket"]