1
0
Fork 0
mirror of synced 2024-10-04 04:06:16 +13:00

Ensure a user's identities are deleted when user is deleted

This commit is contained in:
Steven Nguyen 2023-07-14 16:12:48 -07:00
parent 27e212553d
commit 9ac4c998ae
No known key found for this signature in database

View file

@ -345,6 +345,11 @@ class DeletesV1 extends Worker
$this->deleteByGroup('tokens', [ $this->deleteByGroup('tokens', [
Query::equal('userInternalId', [$userInternalId]) Query::equal('userInternalId', [$userInternalId])
], $dbForProject); ], $dbForProject);
// Delete identities
$this->deleteByGroup('identities', [
Query::equal('userInternalId', [$userInternalId])
], $dbForProject);
} }
/** /**