Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
366b5226
Commit
366b5226
authored
Jul 27, 2016
by
PaulWattenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-5059 Fix domain Sailthru logon cookie dropped in to
parent
92f3c7ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
lms/djangoapps/email_marketing/signals.py
+4
-1
No files found.
lms/djangoapps/email_marketing/signals.py
View file @
366b5226
...
...
@@ -7,6 +7,7 @@ import crum
from
django.dispatch
import
receiver
from
django.core.urlresolvers
import
reverse
from
django.conf
import
settings
from
student.models
import
ENROLL_STATUS_CHANGE
from
student.cookies
import
CREATE_LOGON_COOKIE
...
...
@@ -116,7 +117,9 @@ def add_email_marketing_cookies(sender, response=None, user=None,
response
.
set_cookie
(
'sailthru_hid'
,
cookie
,
max_age
=
365
*
24
*
60
*
60
# set for 1 year
max_age
=
365
*
24
*
60
*
60
,
# set for 1 year
domain
=
settings
.
SESSION_COOKIE_DOMAIN
,
path
=
'/'
,
)
else
:
log
.
error
(
"No cookie returned attempting to obtain cookie from Sailthru for
%
s"
,
user
.
email
)
...
...
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