mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
set session timeout to 20 hours
this way if someone does some work in the evening, when they come in next morning they'll still be logged in. but if someone does stuff in the morning and then leaves notify, they'll be kicked out by the next day unless they have an auto-refreshing page like the dashboard open
This commit is contained in:
@@ -38,7 +38,7 @@ class Config(object):
|
||||
NOTIFY_APP_NAME = 'admin'
|
||||
NOTIFY_LOG_LEVEL = 'DEBUG'
|
||||
NOTIFY_LOG_PATH = '/var/log/notify/application.log'
|
||||
PERMANENT_SESSION_LIFETIME = 3600 # seconds
|
||||
PERMANENT_SESSION_LIFETIME = 20 * 60 * 60 # 20 hours
|
||||
REMEMBER_COOKIE_DURATION = timedelta(days=1)
|
||||
REMEMBER_COOKIE_HTTPONLY = True
|
||||
REMEMBER_COOKIE_NAME = 'notify_admin_remember_me'
|
||||
|
||||
Reference in New Issue
Block a user