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
0c1fd783
Commit
0c1fd783
authored
Apr 11, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting the edxloggedin cookie on registration
Previously it was only set for login
parent
54e5e3d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
common/djangoapps/student/views.py
+25
-1
No files found.
common/djangoapps/student/views.py
View file @
0c1fd783
...
...
@@ -658,7 +658,31 @@ def create_account(request, post_override=None):
statsd
.
increment
(
"common.student.account_created"
)
js
=
{
'success'
:
True
}
return
HttpResponse
(
json
.
dumps
(
js
),
mimetype
=
"application/json"
)
HttpResponse
(
json
.
dumps
(
js
),
mimetype
=
"application/json"
)
response
=
HttpResponse
(
json
.
dumps
({
'success'
:
True
}))
# set the login cookie for the edx marketing site
# we want this cookie to be accessed via javascript
# so httponly is set to None
if
request
.
session
.
get_expire_at_browser_close
():
max_age
=
None
expires
=
None
else
:
max_age
=
request
.
session
.
get_expiry_age
()
expires_time
=
time
.
time
()
+
max_age
expires
=
cookie_date
(
expires_time
)
response
.
set_cookie
(
settings
.
EDXMKTG_COOKIE_NAME
,
'true'
,
max_age
=
max_age
,
expires
=
expires
,
domain
=
settings
.
SESSION_COOKIE_DOMAIN
,
path
=
'/'
,
secure
=
None
,
httponly
=
None
)
return
response
def
exam_registration_info
(
user
,
course
):
...
...
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