mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05:00
[PS-794] Fix password reset email templates email format (#2068)
* Fix password reset email templates email format
This commit is contained in:
@ -794,7 +794,7 @@ namespace Bit.Core.Services
|
||||
user.ForcePasswordReset = true;
|
||||
|
||||
await _userRepository.ReplaceAsync(user);
|
||||
await _mailService.SendAdminResetPasswordEmailAsync(user.Email, user.Name ?? user.Email, org.Name);
|
||||
await _mailService.SendAdminResetPasswordEmailAsync(user.Email, user.Name, org.Name);
|
||||
await _eventService.LogOrganizationUserEventAsync(orgUser, EventType.OrganizationUser_AdminResetPassword);
|
||||
await _pushService.PushLogOutAsync(user.Id);
|
||||
|
||||
@ -820,7 +820,7 @@ namespace Bit.Core.Services
|
||||
user.MasterPasswordHint = hint;
|
||||
|
||||
await _userRepository.ReplaceAsync(user);
|
||||
await _mailService.SendUpdatedTempPasswordEmailAsync(user.Email, user.Name ?? user.Email);
|
||||
await _mailService.SendUpdatedTempPasswordEmailAsync(user.Email, user.Name);
|
||||
await _eventService.LogUserEventAsync(user.Id, EventType.User_UpdatedTempPassword);
|
||||
await _pushService.PushLogOutAsync(user.Id);
|
||||
|
||||
|
Reference in New Issue
Block a user