mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 17:38:50 -04:00
Merge pull request #1189 from alphagov/dont-expire-csrf
Make CSRF tokens last as long as the session
This commit is contained in:
@@ -47,6 +47,7 @@ class Config(object):
|
||||
SHOW_STYLEGUIDE = True
|
||||
TOKEN_MAX_AGE_SECONDS = 3600
|
||||
WTF_CSRF_ENABLED = True
|
||||
WTF_CSRF_TIME_LIMIT = None
|
||||
CSV_UPLOAD_BUCKET_NAME = 'local-notifications-csv-upload'
|
||||
DESKPRO_PERSON_EMAIL = 'donotreply@notifications.service.gov.uk'
|
||||
ACTIVITY_STATS_LIMIT_DAYS = 7
|
||||
@@ -80,7 +81,6 @@ class Config(object):
|
||||
class Development(Config):
|
||||
DEBUG = True
|
||||
SESSION_COOKIE_SECURE = False
|
||||
WTF_CSRF_ENABLED = False
|
||||
SESSION_PROTECTION = None
|
||||
STATSD_ENABLED = False
|
||||
CSV_UPLOAD_BUCKET_NAME = 'development-notifications-csv-upload'
|
||||
@@ -89,6 +89,7 @@ class Development(Config):
|
||||
class Test(Development):
|
||||
DEBUG = True
|
||||
STATSD_ENABLED = True
|
||||
WTF_CSRF_ENABLED = False
|
||||
CSV_UPLOAD_BUCKET_NAME = 'test-notifications-csv-upload'
|
||||
NOTIFY_ENVIRONMENT = 'test'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user