From 90312369308b52e7cccc095420f0476d2ab056c9 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 13 Jun 2025 19:14:30 +0000 Subject: [PATCH] - WIP on ulmus-user mechanics updates --- meta/definitions/authorize.php | 6 ++++-- view/lean/picto/undraw_error.phtml | 5 +---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/meta/definitions/authorize.php b/meta/definitions/authorize.php index 6c3fafa..359a515 100644 --- a/meta/definitions/authorize.php +++ b/meta/definitions/authorize.php @@ -4,6 +4,7 @@ use Lean\Factory\HttpFactoryInterface; use Ulmus\User\{Authorize\HeaderAuthentication, Entity, + Lib\Authenticate, Lib\Authorize, Middleware\AuthenticationMiddleware, @@ -12,12 +13,12 @@ use Ulmus\User\{Authorize\HeaderAuthentication, Authorize\PostRequestAuthentication}; use Picea\Picea; + use Storage\{ Cookie, Session }; + use Psr\Container\ContainerInterface; - use function DI\{get, autowire, create}; - return [ Authorize::class => create(Authorize::class)->constructor(get(Entity\UserInterface::class), get(Session::class), get(Cookie::class), get('authentication.method')), @@ -47,6 +48,7 @@ return [ 'authentication.error' => function($c, Picea $picea) { return function($message) use ($c, $picea) { return $c->get(HttpFactoryInterface::class)::createHtmlResponse($picea->renderHtml('lean/error/500', [ + 'title' => "Authentication failed", 'subtitle' => "", 'message' => $message, diff --git a/view/lean/picto/undraw_error.phtml b/view/lean/picto/undraw_error.phtml index 61cfe79..3f3edcc 100644 --- a/view/lean/picto/undraw_error.phtml +++ b/view/lean/picto/undraw_error.phtml @@ -1,5 +1,2 @@ -<<<<<<< HEAD bug fixing -======= - ->>>>>>> fdca37a (- Added createStream methods and fixed multiple errors views) + \ No newline at end of file