1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

Streamline error message for removed user account with CME (#1741)

This commit is contained in:
Oscar Hinton
2021-12-02 18:38:27 +00:00
committed by GitHub
parent a70564cea8
commit 71229c2366
3 changed files with 18 additions and 5 deletions

View File

@ -447,6 +447,12 @@ namespace Bit.Sso.Controllers
// All Existing User flows handled below
if (existingUser != null)
{
if (existingUser.UsesKeyConnector && orgUser == null ||
orgUser.Status == OrganizationUserStatusType.Invited)
{
throw new Exception(_i18nService.T("UserAlreadyExistsKeyConnector"));
}
if (orgUser == null)
{
// Org User is not created - no invite has been sent