-Rebasing
This commit is contained in:
1 parent
d54d78ccc5
commit
b16b4803c5
4 files changed
+6
-11
No files matched your search
@@ -3,19 +3,15 @@
|
||||
use Lean\Factory\HttpFactoryInterface;
|
||||
|
||||
use Ulmus\User\{
|
||||
Authorize\HeaderAuthentication,
|
||||
Authorize\HeaderAuthentication, Authorize\PostRequestAuthentication,
|
||||
Entity,
|
||||
Lib\Authenticate,
|
||||
Lib\Authorize,
|
||||
Middleware\AuthenticationMiddleware,
|
||||
Middleware\HeaderAuthenticationMiddleware,
|
||||
Middleware\PostRequestAuthenticationMiddleware,
|
||||
Authorize\PostRequestAuthentication
|
||||
Lib\Authenticate, Lib\Authorize,
|
||||
Middleware\AuthenticationMiddleware, Middleware\HeaderAuthenticationMiddleware, Middleware\PostRequestAuthenticationMiddleware,
|
||||
};
|
||||
|
||||
use Picea\Picea;
|
||||
use Storage\{ Cookie, Session };
|
||||
use Psr\Container\ContainerInterface;
|
||||
use Picea\Picea;
|
||||
|
||||
use function DI\{get, autowire, create};
|
||||
|
||||
@@ -39,7 +35,6 @@ return [
|
||||
'authorize.error' => function(ContainerInterface $c) {
|
||||
return function(array $errorData) use ($c) {
|
||||
return $c->get(HttpFactoryInterface::class)::createJsonResponse($errorData + [
|
||||
|
||||
'api.error' => "Authorization failed",
|
||||
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM),
|
||||
], 403);
|
||||
|
||||
Reference in new issue
Block a user