Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
0f61a159
Commit
0f61a159
authored
Jan 24, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: server_url is not in environ
parent
14924440
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
...mplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
+3
-3
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
View file @
0f61a159
...
...
@@ -16,9 +16,9 @@ portal.portal_sessions[
)
][
'ac_renew'
]
=
ac_renew
REQUEST
_DICT
=
portal
.
REQUEST
.
environ
REQUEST
=
portal
.
REQUEST
same_site
=
portal
.
ERP5Site_getAuthCookieSameSite
(
host
=
REQUEST
_DICT
.
get
(
'HTTP_HOST'
))
same_site
=
portal
.
ERP5Site_getAuthCookieSameSite
(
host
=
REQUEST
.
environ
.
get
(
'HTTP_HOST'
))
if
same_site
not
in
(
'None'
,
'Lax'
,
'Strict'
):
# Do not use the SameSite attribute
same_site
=
None
...
...
@@ -27,7 +27,7 @@ resp.setCookie(
name
=
cookie_name
,
value
=
cookie_value
,
path
=
'/'
,
secure
=
REQUEST
_DICT
.
get
(
'SERVER_URL'
,
''
).
startswith
(
'https:'
),
secure
=
REQUEST
.
get
(
'SERVER_URL'
,
''
).
startswith
(
'https:'
),
http_only
=
True
,
same_site
=
same_site
,
**
kw
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment