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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
c67b8d52
Commit
c67b8d52
authored
Jan 23, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: coding style
parent
8e4cf2c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
...mplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
+2
-2
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_auto_logout/setAuthCookie.py
View file @
c67b8d52
...
@@ -16,9 +16,9 @@ portal.portal_sessions[
...
@@ -16,9 +16,9 @@ portal.portal_sessions[
)
)
][
'ac_renew'
]
=
ac_renew
][
'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'
):
if
same_site
not
in
(
'None'
,
'Lax'
,
'Strict'
):
# Do not use the SameSite attribute
# Do not use the SameSite attribute
same_site
=
None
same_site
=
None
...
...
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