1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

delete ssouser on org and user delete (#902)

This commit is contained in:
Kyle Spearrin
2020-09-01 16:05:37 -04:00
committed by GitHub
parent 9faa9406a6
commit 47224913d4
3 changed files with 155 additions and 0 deletions

View File

@ -23,6 +23,12 @@ BEGIN
COMMIT TRANSACTION Organization_DeleteById_Ciphers
END
DELETE
FROM
[dbo].[SsoUser]
WHERE
[OrganizationId] = @Id
DELETE
FROM
[dbo].[Organization]

View File

@ -72,6 +72,13 @@ BEGIN
WHERE
[UserId] = @Id
-- Delete SSO Users
DELETE
FROM
[dbo].[SsoUser]
WHERE
[UserId] = @Id
-- Finally, delete the user
DELETE
FROM