1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-16 02:46:44 +02:00

make session IDs 128bits

This commit is contained in:
Florent Daigniere 2021-02-22 20:34:06 +01:00
parent 22af5b8432
commit d459c37432

View File

@ -135,6 +135,7 @@ class ConfigManager(dict):
self.config['QUOTA_STORAGE_URL'] = 'redis://{0}/1'.format(self.config['REDIS_ADDRESS'])
self.config['SESSION_COOKIE_SAMESITE'] = 'Strict'
self.config['SESSION_COOKIE_HTTPONLY'] = True
self.config['SESSION_KEY_BITS'] = 128
# update the app config itself
app.config = self