From 176f016d0f132aa7480f46ca6c3ff6991fb64aa7 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Tue, 1 Sep 2026 07:28:04 +0200 Subject: [PATCH] Timeout is not set in core preferences, no longer in a constant --- _dependencies.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_dependencies.php b/_dependencies.php index ba0f0e0..cadd1ea 100644 --- a/_dependencies.php +++ b/_dependencies.php @@ -16,6 +16,7 @@ */ use Defuse\Crypto\Key; +use Galette\Core\Preferences; use GaletteOAuth2\Repositories\AccessTokenRepository; use GaletteOAuth2\Repositories\AuthCodeRepository; use GaletteOAuth2\Repositories\ClientRepository; @@ -41,7 +42,7 @@ function (ContainerInterface $container) { $session_name = 'galette_oauth_' . $session_name; $session = new SessionMiddleware([ 'name' => $session_name, - 'lifetime' => GALETTE_TIMEOUT + 'lifetime' => (int)$container->get(Preferences::class)->getConfigValue('pref_session_timeout') ]); $galette_sid = session_id();