From d6e4509c398394eb2b7821ddd6eac460f5882cce Mon Sep 17 00:00:00 2001 From: Gustav Soelberg Date: Thu, 12 Dec 2024 16:21:18 +0100 Subject: [PATCH] [#665][ADD] IRIS_SESSION_TIMEOUT is being interpreted as a string --- source/app/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/configuration.py b/source/app/configuration.py index 974f55a3c..4c223653c 100644 --- a/source/app/configuration.py +++ b/source/app/configuration.py @@ -288,7 +288,7 @@ class Config: IRIS_ADM_USERNAME = config.load('IRIS', 'ADM_USERNAME') IRIS_ADM_API_KEY = config.load('IRIS', 'ADM_API_KEY') - PERMANENT_SESSION_LIFETIME = timedelta(minutes=config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440)) + PERMANENT_SESSION_LIFETIME = timedelta(minutes=int(config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440))) SESSION_COOKIE_SAMESITE = 'Lax' SESSION_COOKIE_SECURE = True MFA_ENABLED = config.load('IRIS', 'MFA_ENABLED', fallback=False) == 'True'