mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
Fix null error in SSO existing user flow (#1773)
This commit is contained in:
parent
11aafac915
commit
ed7440cc14
@ -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"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user