File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Linq ;
33using System . Threading . Tasks ;
4+ using Wilcommerce . Auth . Events . User ;
45using Wilcommerce . Auth . Models ;
56using Wilcommerce . Auth . ReadModels ;
67using Wilcommerce . Auth . Repository ;
@@ -63,6 +64,9 @@ public async Task Handle(ValidatePasswordRecoveryCommand command)
6364 token . SetAsExpired ( ) ;
6465
6566 await Repository . SaveChangesAsync ( ) ;
67+
68+ var @event = new PasswordRecoveryValidatedEvent ( userToken . UserId , userToken . Token ) ;
69+ EventBus . RaiseEvent ( @event ) ;
6670 }
6771 catch
6872 {
Original file line number Diff line number Diff line change 1515 <GenerateAssemblyConfigurationAttribute >false</GenerateAssemblyConfigurationAttribute >
1616 <GenerateAssemblyCompanyAttribute >false</GenerateAssemblyCompanyAttribute >
1717 <GenerateAssemblyProductAttribute >false</GenerateAssemblyProductAttribute >
18- <Version >1.0.0-rc1 </Version >
19- <PackageReleaseNotes >Upgrade to .NET Standard 2.0 & .NET Core 2.0 </PackageReleaseNotes >
18+ <Version >1.0.0-rc2 </Version >
19+ <PackageReleaseNotes >Add password recovery validated event </PackageReleaseNotes >
2020 <Description >Wilcommerce Authentication and Authorization library</Description >
2121 </PropertyGroup >
2222
You can’t perform that action at this time.
0 commit comments