1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 07:43:54 +00:00

org user invite emails

This commit is contained in:
Kyle Spearrin
2017-03-23 16:56:25 -04:00
parent 4eac3694a3
commit 072fb727a8
7 changed files with 15 additions and 13 deletions

View File

@@ -150,7 +150,7 @@ namespace Bit.Core.Services
var nowMillis = CoreHelpers.ToEpocMilliseconds(DateTime.UtcNow);
var token = _dataProtector.Protect(
$"OrganizationUserInvite {orgUser.Id} {orgUser.Email} {nowMillis}");
await _mailService.SendOrganizationInviteEmailAsync("Organization Name", orgUser.Email, token);
await _mailService.SendOrganizationInviteEmailAsync("Organization Name", orgUser, token);
}
public async Task<OrganizationUser> AcceptUserAsync(Guid organizationUserId, User user, string token)
@@ -189,7 +189,7 @@ namespace Bit.Core.Services
}
orgUser.Status = Enums.OrganizationUserStatusType.Accepted;
orgUser.UserId = orgUser.Id;
orgUser.UserId = user.Id;
orgUser.Email = null;
await _organizationUserRepository.ReplaceAsync(orgUser);