remove remember_me cookie and related code

This commit is contained in:
Leo Hemsted
2017-02-23 16:43:09 +00:00
parent b460f5971e
commit 9fda5d1847
11 changed files with 6 additions and 123 deletions

View File

@@ -39,10 +39,6 @@ class Config(object):
NOTIFY_LOG_LEVEL = 'DEBUG'
NOTIFY_LOG_PATH = '/var/log/notify/application.log'
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'
REMEMBER_COOKIE_SECURE = True
SEND_FILE_MAX_AGE_DEFAULT = 365 * 24 * 60 * 60 # 1 year
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_NAME = 'notify_admin_session'
@@ -81,7 +77,6 @@ class Config(object):
class Development(Config):
DEBUG = True
REMEMBER_COOKIE_SECURE = False
SESSION_COOKIE_SECURE = False
WTF_CSRF_ENABLED = False
SESSION_PROTECTION = None