1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-23 04:21:05 -05:00

[Reset Password] Added new event type for admin password reset (#1350)

This commit is contained in:
Vincent Salucci 2021-05-26 15:51:54 -05:00 committed by GitHub
parent d4cf6d929a
commit d7f3507d44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@
OrganizationUser_UnlinkedSso = 1505,
OrganizationUser_ResetPassword_Enroll = 1506,
OrganizationUser_ResetPassword_Withdraw = 1507,
OrganizationUser_AdminResetPassword = 1508,
Organization_Updated = 1600,
Organization_PurgedVault = 1601,

View File

@ -690,7 +690,7 @@ namespace Bit.Core.Services
await _userRepository.ReplaceAsync(user);
// TODO Reset Password - Send email alerting user of changed password
await _eventService.LogUserEventAsync(user.Id, EventType.User_ChangedPassword);
await _eventService.LogOrganizationUserEventAsync(orgUser, EventType.OrganizationUser_AdminResetPassword);
await _pushService.PushLogOutAsync(user.Id);
return IdentityResult.Success;