1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

Fix null error when provisioning new SSO user (#1578)

This commit is contained in:
Thomas Rittson 2021-09-10 23:25:08 +10:00 committed by GitHub
parent 57dd6c7294
commit 4b346ff7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,7 +520,7 @@ namespace Bit.Sso.Controllers
}
// Delete any stale user record to be safe
await DeleteExistingSsoUserRecord(existingUser.Id, orgId, orgUser);
await DeleteExistingSsoUserRecord(user.Id, orgId, orgUser);
// Create sso user record
await CreateSsoUserRecord(providerUserId, user.Id, orgId);