mirror of
https://github.com/bitwarden/server
synced 2025-12-12 22:33:45 +00:00
email user whenever they're removed from org because of 2fa policy (#657)
This commit is contained in:
@@ -669,6 +669,9 @@ namespace Bit.Core.Services
|
||||
if(!ownerOrgs.Contains(policy.OrganizationId))
|
||||
{
|
||||
await organizationService.DeleteUserAsync(policy.OrganizationId, user.Id);
|
||||
var organization = await _organizationRepository.GetByIdAsync(policy.OrganizationId);
|
||||
await _mailService.SendOrganizationUserRemovedForPolicyTwoStepEmailAsync(
|
||||
organization.Name, user.Email);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user