mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Ensure that users are confirmed status (#1033)
This commit is contained in:
@ -301,7 +301,8 @@ namespace Bit.Core.IdentityServer
|
||||
if (ssoOrgs.Any())
|
||||
{
|
||||
// Parse users orgs and determine if require sso policy is enabled
|
||||
var userOrgs = await _organizationUserRepository.GetManyDetailsByUserAsync(user.Id);
|
||||
var userOrgs = await _organizationUserRepository.GetManyDetailsByUserAsync(user.Id,
|
||||
OrganizationUserStatusType.Confirmed);
|
||||
foreach (var userOrg in userOrgs.Where(o => o.Enabled && o.UseSso))
|
||||
{
|
||||
var orgPolicy = await _policyRepository.GetByOrganizationIdTypeAsync(userOrg.OrganizationId,
|
||||
|
Reference in New Issue
Block a user