mirror of
https://github.com/bitwarden/server.git
synced 2025-07-11 21:03:47 -05:00
Organization User Accepted Invite Email Notifications (#1465)
This commit is contained in:
@ -1424,7 +1424,10 @@ namespace Bit.Core.Services
|
||||
|
||||
await _organizationUserRepository.ReplaceAsync(orgUser);
|
||||
|
||||
// TODO: send notification emails to org admins and accepting user?
|
||||
await _mailService.SendOrganizationAcceptedEmailAsync(
|
||||
(await _organizationRepository.GetByIdAsync(orgUser.OrganizationId)),
|
||||
user.Email,
|
||||
(await _organizationUserRepository.GetManyByMinimumRoleAsync(orgUser.OrganizationId, OrganizationUserType.Admin)).Select(a => a.Email).Distinct());
|
||||
return orgUser;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user