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:
@ -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
|
||||
|
Reference in New Issue
Block a user