-
Notifications
You must be signed in to change notification settings - Fork 846
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VCST-781: Publish two different events when changing password (#2780)
- Loading branch information
1 parent
309ca4b
commit a5c087b
Showing
8 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/VirtoCommerce.Platform.Core/Security/Events/UserChangedPasswordEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using VirtoCommerce.Platform.Core.Events; | ||
|
||
namespace VirtoCommerce.Platform.Core.Security.Events | ||
{ | ||
/// <summary> | ||
/// This event is published when a user has changed their password. | ||
/// </summary> | ||
public class UserChangedPasswordEvent : DomainEvent | ||
{ | ||
public UserChangedPasswordEvent(string userId, string customPasswordHash) | ||
{ | ||
UserId = userId; | ||
CustomPasswordHash = customPasswordHash; | ||
} | ||
|
||
public string UserId { get; set; } | ||
|
||
/// <summary> | ||
/// Password hash for external hash storage. This provided as workaround until password hash storage is implemented | ||
/// </summary> | ||
public string CustomPasswordHash { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters