default to 128 bits

master
Alexander Graf 3 years ago
parent 4b71bd56c4
commit 4b8bbf760b

@ -140,6 +140,7 @@ class ConfigManager(dict):
self.config['SESSION_STORAGE_URL'] = 'redis://{0}/3'.format(self.config['REDIS_ADDRESS'])
self.config['SESSION_COOKIE_SAMESITE'] = 'Strict'
self.config['SESSION_COOKIE_HTTPONLY'] = True
self.config['SESSION_KEY_BITS'] = 128
self.config['PERMANENT_SESSION_LIFETIME'] = timedelta(hours=int(self.config['SESSION_LIFETIME']))
# update the app config itself
app.config = self

Loading…
Cancel
Save