Skip to content

Commit

Permalink
[Reset Password] Added new event type for admin password reset (bitwa…
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsalucci authored May 26, 2021
1 parent d4cf6d9 commit d7f3507
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Core/Enums/EventType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public enum EventType : int
OrganizationUser_UnlinkedSso = 1505,
OrganizationUser_ResetPassword_Enroll = 1506,
OrganizationUser_ResetPassword_Withdraw = 1507,
OrganizationUser_AdminResetPassword = 1508,

Organization_Updated = 1600,
Organization_PurgedVault = 1601,
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Services/Implementations/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ public async Task<IdentityResult> AdminResetPasswordAsync(OrganizationUserType c

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;
Expand Down

0 comments on commit d7f3507

Please sign in to comment.