mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
Fix null error in SSO existing user flow (#1773)
This commit is contained in:
@@ -447,7 +447,7 @@ namespace Bit.Sso.Controllers
|
|||||||
if (existingUser != null)
|
if (existingUser != null)
|
||||||
{
|
{
|
||||||
if (existingUser.UsesKeyConnector && orgUser == null ||
|
if (existingUser.UsesKeyConnector && orgUser == null ||
|
||||||
orgUser.Status == OrganizationUserStatusType.Invited)
|
orgUser?.Status == OrganizationUserStatusType.Invited)
|
||||||
{
|
{
|
||||||
throw new Exception(_i18nService.T("UserAlreadyExistsKeyConnector"));
|
throw new Exception(_i18nService.T("UserAlreadyExistsKeyConnector"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user