Skip to content

Commit

Permalink
[MRG] Merge pull request #667 from FideliusFalcon/develop
Browse files Browse the repository at this point in the history
[#665][ADD] Load IRIS_SESSION_TIMEOUT as an integer
  • Loading branch information
whikernel authored Dec 16, 2024
2 parents f4d23b1 + d6e4509 commit fdb2d1d
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 fdb2d1d

Please sign in to comment.