Commit c67b8d52 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: coding style

parent 8e4cf2c9
......@@ -16,9 +16,9 @@ portal.portal_sessions[
)
]['ac_renew'] = ac_renew
REQUEST_DICT = getattr(portal, 'REQUEST', {})
REQUEST_DICT = portal.REQUEST.environ
same_site = portal.ERP5Site_getAuthCookieSameSite(host=REQUEST_DICT.get('HTTP_HOST', None))
same_site = portal.ERP5Site_getAuthCookieSameSite(host=REQUEST_DICT.get('HTTP_HOST'))
if same_site not in ('None', 'Lax', 'Strict'):
# Do not use the SameSite attribute
same_site = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment