Api changes (#129)
* feat(api): include smtp flag in login response * feat(api): changed smtp flag in login response * feat(api): owner role is not allowed to change * feat(api): changed chalice template * feat(api): reset password invitation|token * feat(api): fixed invitation token * feat(api): after invitation return identical result * feat(api): remove password when user deleted
This commit is contained in:
parent
52908e2311
commit
9526423f44
2 changed files with 10 additions and 0 deletions
|
|
@ -408,6 +408,11 @@ def delete_member(user_id, tenant_id, id_to_delete):
|
|||
SET deleted_at = timezone('utc'::text, now())
|
||||
WHERE user_id=%(user_id)s;""",
|
||||
{"user_id": id_to_delete}))
|
||||
cur.execute(
|
||||
cur.mogrify(f"""UPDATE public.basic_authentication
|
||||
SET password= NULL
|
||||
WHERE user_id=%(user_id)s;""",
|
||||
{"user_id": id_to_delete}))
|
||||
return {"data": get_members(tenant_id=tenant_id)}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -416,6 +416,11 @@ def delete_member(user_id, tenant_id, id_to_delete):
|
|||
SET deleted_at = timezone('utc'::text, now())
|
||||
WHERE user_id=%(user_id)s AND tenant_id=%(tenant_id)s;""",
|
||||
{"user_id": id_to_delete, "tenant_id": tenant_id}))
|
||||
cur.execute(
|
||||
cur.mogrify(f"""UPDATE public.basic_authentication
|
||||
SET password=NULL
|
||||
WHERE user_id=%(user_id)s;""",
|
||||
{"user_id": id_to_delete, "tenant_id": tenant_id}))
|
||||
return {"data": get_members(tenant_id=tenant_id)}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue