mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-17 22:00:30 +02:00
Adjusted files for isort & autopep
This commit is contained in:
committed by
github-actions[bot]
parent
30a5e417eb
commit
aa99fc6226
@@ -146,6 +146,7 @@ def password_change_mail(email: str) -> bool:
|
|||||||
raise HTTPException(re.status_code, re.json())
|
raise HTTPException(re.status_code, re.json())
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
def user_password_change_ticket(user_id: str) -> str:
|
def user_password_change_ticket(user_id: str) -> str:
|
||||||
re = requests.post(
|
re = requests.post(
|
||||||
f"https://{AUTH0_DOMAIN}/api/v2/tickets/password-change",
|
f"https://{AUTH0_DOMAIN}/api/v2/tickets/password-change",
|
||||||
@@ -155,10 +156,10 @@ def user_password_change_ticket(user_id: str) -> str:
|
|||||||
"client_id": AUTH0_CLIENT_ID,
|
"client_id": AUTH0_CLIENT_ID,
|
||||||
"ttl_sec": 0,
|
"ttl_sec": 0,
|
||||||
"mark_email_as_verified": False,
|
"mark_email_as_verified": False,
|
||||||
"includeEmailInRedirect": False
|
"includeEmailInRedirect": False,
|
||||||
},
|
},
|
||||||
timeout=5,
|
timeout=5,
|
||||||
)
|
)
|
||||||
if re.status_code != 201:
|
if re.status_code != 201:
|
||||||
raise HTTPException(re.status_code, re.json())
|
raise HTTPException(re.status_code, re.json())
|
||||||
return re.json()['ticket']
|
return re.json()["ticket"]
|
||||||
|
|||||||
Reference in New Issue
Block a user