Skip to content

Commit

Permalink
[#665][ADD] IRIS_SESSION_TIMEOUT is being interpreted as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav Soelberg committed Dec 12, 2024
1 parent f4d23b1 commit d6e4509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d6e4509

Please sign in to comment.