Skip to content

Commit

Permalink
Move security middleware to core module
Browse files Browse the repository at this point in the history
  • Loading branch information
voltan committed Nov 10, 2024
1 parent e857736 commit 72366c8
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 252 deletions.
126 changes: 63 additions & 63 deletions config/module.config.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Factory/Middleware/AuthenticationMiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace User\Factory\Middleware;

use Core\Security\Account\AccountLocked;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Pi\Core\Security\Account\AccountLocked;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/Middleware/AvatarUploadMiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace User\Factory\Middleware;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Pi\Core\Middleware\SecurityMiddleware;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
use User\Handler\ErrorHandler;
use User\Middleware\AvatarUploadMiddleware;
use User\Middleware\SecurityMiddleware;
use User\Service\AccountService;
use User\Service\AvatarService;

Expand Down
42 changes: 0 additions & 42 deletions src/Factory/Middleware/SecurityMiddlewareFactory.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Factory/Service/AccountServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace User\Factory\Service;

use Core\Security\Account\AccountLocked;
use Core\Security\Account\AccountLoginAttempts;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Notification\Service\NotificationService;
use Pi\Core\Security\Account\AccountLocked;
use Pi\Core\Security\Account\AccountLoginAttempts;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/AuthenticationMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace User\Middleware;

use Core\Security\Account\AccountLocked;
use Fig\Http\Message\StatusCodeInterface;
use Pi\Core\Security\Account\AccountLocked;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down
140 changes: 0 additions & 140 deletions src/Middleware/SecurityMiddleware.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace User\Service;

use Core\Security\Account\AccountLocked;
use Core\Security\Account\AccountLoginAttempts;
use Fig\Http\Message\StatusCodeInterface;
use Laminas\Math\Rand;
use Notification\Service\NotificationService;
use Pi\Core\Security\Account\AccountLocked;
use Pi\Core\Security\Account\AccountLoginAttempts;
use RobThree\Auth\Algorithm;
use RobThree\Auth\Providers\Qr\EndroidQrCodeProvider;
use RobThree\Auth\TwoFactorAuth;
Expand Down

0 comments on commit 72366c8

Please sign in to comment.