parent
4bd6093dae
commit
0682b62770
2 changed files with 10 additions and 2 deletions
|
|
@ -436,7 +436,11 @@ def delete_member(user_id, tenant_id, id_to_delete):
|
|||
{"user_id": id_to_delete}))
|
||||
cur.execute(
|
||||
cur.mogrify(f"""UPDATE public.basic_authentication
|
||||
SET password= NULL
|
||||
SET password= NULL, jwt_iat= NULL,
|
||||
jwt_refresh_jti= NULL, jwt_refresh_iat= NULL,
|
||||
password= NULL, invitation_token= NULL,
|
||||
invited_at= NULL, changed_at= NULL,
|
||||
change_pwd_expire_at= NULL, change_pwd_token= NULL
|
||||
WHERE user_id=%(user_id)s;""",
|
||||
{"user_id": id_to_delete}))
|
||||
return {"data": get_members(tenant_id=tenant_id)}
|
||||
|
|
|
|||
|
|
@ -495,7 +495,11 @@ def delete_member(user_id, tenant_id, id_to_delete):
|
|||
{"user_id": id_to_delete, "tenant_id": tenant_id}))
|
||||
cur.execute(
|
||||
cur.mogrify(f"""UPDATE public.basic_authentication
|
||||
SET password=NULL
|
||||
SET password=NULL, jwt_iat= NULL,
|
||||
jwt_refresh_jti= NULL, jwt_refresh_iat= NULL,
|
||||
password= NULL, invitation_token= NULL,
|
||||
invited_at= NULL, changed_at= NULL,
|
||||
change_pwd_expire_at= NULL, change_pwd_token= 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