Fix bug in setting Secure on session cookie.
This fixes a bug I introduced with commit
6edc7b138b
The value for SESSION_COOKIE_SECURE was being read in as a truthy string
every time. In order for it to be interpreted correctly, we need to map
it to a boolean.
This commit is contained in:
@@ -193,6 +193,7 @@ def map_config(config):
|
|||||||
"CONTRACT_END_DATE": datetime.strptime(
|
"CONTRACT_END_DATE": datetime.strptime(
|
||||||
config.get("default", "CONTRACT_END_DATE"), "%Y-%m-%d"
|
config.get("default", "CONTRACT_END_DATE"), "%Y-%m-%d"
|
||||||
).date(),
|
).date(),
|
||||||
|
"SESSION_COOKIE_SECURE": config.getboolean("default", "SESSION_COOKIE_SECURE"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user