From 502a5d4e623c4ffaf3ba3c99cac9a894557bf1eb Mon Sep 17 00:00:00 2001 From: "albi.mori" <albi.mori@gmail.com> Date: Fri, 22 Dec 2017 14:40:31 +0100 Subject: [PATCH 1/2] add passwordRecoveryValidateEvent on command --- .../Handlers/ValidatePasswordRecoveryCommandHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Wilcommerce.Auth/Commands/Handlers/ValidatePasswordRecoveryCommandHandler.cs b/src/Wilcommerce.Auth/Commands/Handlers/ValidatePasswordRecoveryCommandHandler.cs index b794011..32ca2ea 100644 --- a/src/Wilcommerce.Auth/Commands/Handlers/ValidatePasswordRecoveryCommandHandler.cs +++ b/src/Wilcommerce.Auth/Commands/Handlers/ValidatePasswordRecoveryCommandHandler.cs @@ -1,6 +1,7 @@ using System; using System.Linq; using System.Threading.Tasks; +using Wilcommerce.Auth.Events.User; using Wilcommerce.Auth.Models; using Wilcommerce.Auth.ReadModels; using Wilcommerce.Auth.Repository; @@ -63,6 +64,9 @@ public async Task Handle(ValidatePasswordRecoveryCommand command) token.SetAsExpired(); await Repository.SaveChangesAsync(); + + var @event = new PasswordRecoveryValidatedEvent(userToken.UserId, userToken.Token); + EventBus.RaiseEvent(@event); } catch { From 129a101a8d2494428088aee09941182616f97391 Mon Sep 17 00:00:00 2001 From: "albi.mori" <albi.mori@gmail.com> Date: Fri, 22 Dec 2017 14:58:49 +0100 Subject: [PATCH 2/2] update version and release notes --- src/Wilcommerce.Auth/Wilcommerce.Auth.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Wilcommerce.Auth/Wilcommerce.Auth.csproj b/src/Wilcommerce.Auth/Wilcommerce.Auth.csproj index 2a6465d..73cf4a0 100644 --- a/src/Wilcommerce.Auth/Wilcommerce.Auth.csproj +++ b/src/Wilcommerce.Auth/Wilcommerce.Auth.csproj @@ -15,8 +15,8 @@ <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> <GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> <GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> - <Version>1.0.0-rc1</Version> - <PackageReleaseNotes>Upgrade to .NET Standard 2.0 & .NET Core 2.0</PackageReleaseNotes> + <Version>1.0.0-rc2</Version> + <PackageReleaseNotes>Add password recovery validated event</PackageReleaseNotes> <Description>Wilcommerce Authentication and Authorization library</Description> </PropertyGroup>