diff --git a/bitwarden_license/src/Sso/Controllers/AccountController.cs b/bitwarden_license/src/Sso/Controllers/AccountController.cs index 1f691a601..83c392779 100644 --- a/bitwarden_license/src/Sso/Controllers/AccountController.cs +++ b/bitwarden_license/src/Sso/Controllers/AccountController.cs @@ -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 diff --git a/bitwarden_license/src/Sso/Views/Shared/Error.cshtml b/bitwarden_license/src/Sso/Views/Shared/Error.cshtml index 6bd879fe3..cdce82948 100644 --- a/bitwarden_license/src/Sso/Views/Shared/Error.cshtml +++ b/bitwarden_license/src/Sso/Views/Shared/Error.cshtml @@ -7,11 +7,15 @@
@Html.Raw(i18nService.T("SsoErrorWithRedirect", Model?.RedirectUri)) @Model?.Description
+@Html.Raw(i18nService.T("SsoErrorWithRedirect", Model?.RedirectUri))
} else { -@i18nService.T("SsoError") @Model?.Description
+@i18nService.T("SsoError")
+} +@if (!string.IsNullOrWhiteSpace(Model?.Description)) +{ +@Model?.Description
} @if (!string.IsNullOrWhiteSpace(Model?.RequestId)) { diff --git a/src/Core/Resources/SharedResources.en.resx b/src/Core/Resources/SharedResources.en.resx index 57f09f5a9..af0c6a109 100644 --- a/src/Core/Resources/SharedResources.en.resx +++ b/src/Core/Resources/SharedResources.en.resx @@ -434,10 +434,10 @@