Exemplo n.º 1
0
        public async Task <Unit> Handle(UpdatePasswordCommandModel request, CancellationToken cancellationToken)
        {
            logger.Info($"Trying change password for user: '******' with token: '{request.Token}'.");

            await userCommandService.UpdateUserPasswordAsync(request.Email, request.NewPassword, request.Token);

            logger.Info($"Password successfylly changed for user: '******'.");

            return(Unit.Value);
        }