mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 12:31:06 -05:00
[Reset Password] Added new event type for admin password reset (#1350)
This commit is contained in:
parent
d4cf6d929a
commit
d7f3507d44
@ -46,6 +46,7 @@
|
|||||||
OrganizationUser_UnlinkedSso = 1505,
|
OrganizationUser_UnlinkedSso = 1505,
|
||||||
OrganizationUser_ResetPassword_Enroll = 1506,
|
OrganizationUser_ResetPassword_Enroll = 1506,
|
||||||
OrganizationUser_ResetPassword_Withdraw = 1507,
|
OrganizationUser_ResetPassword_Withdraw = 1507,
|
||||||
|
OrganizationUser_AdminResetPassword = 1508,
|
||||||
|
|
||||||
Organization_Updated = 1600,
|
Organization_Updated = 1600,
|
||||||
Organization_PurgedVault = 1601,
|
Organization_PurgedVault = 1601,
|
||||||
|
@ -690,7 +690,7 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
await _userRepository.ReplaceAsync(user);
|
await _userRepository.ReplaceAsync(user);
|
||||||
// TODO Reset Password - Send email alerting user of changed password
|
// 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);
|
await _pushService.PushLogOutAsync(user.Id);
|
||||||
|
|
||||||
return IdentityResult.Success;
|
return IdentityResult.Success;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user