mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-14 12:20:31 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0af8f05edf | ||
|
|
b73c524e8d |
@@ -120,6 +120,16 @@ def create_user_invite(email: str, company_id: str) -> dict:
|
|||||||
return re.json()
|
return re.json()
|
||||||
|
|
||||||
|
|
||||||
|
def delete_user_invite(user_id: str) -> None:
|
||||||
|
re = requests.delete(
|
||||||
|
f"https://{AUTH0_DOMAIN}/api/v2/users/{user_id}",
|
||||||
|
headers={"Authorization": f"Bearer {get_management_token()}"},
|
||||||
|
timeout=5,
|
||||||
|
)
|
||||||
|
if re.status_code != 204:
|
||||||
|
raise HTTPException(re.status_code, re.json())
|
||||||
|
|
||||||
|
|
||||||
def password_change_mail(email: str) -> bool:
|
def password_change_mail(email: str) -> bool:
|
||||||
re = requests.post(
|
re = requests.post(
|
||||||
f"https://{AUTH0_DOMAIN}/dbconnections/change_password",
|
f"https://{AUTH0_DOMAIN}/dbconnections/change_password",
|
||||||
|
|||||||
Reference in New Issue
Block a user