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
528fcd7f
Commit
528fcd7f
authored
Nov 07, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create a config option for enabling a Pearson login in a totally hacky manner.
parent
92f2fbf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
common/djangoapps/student/views.py
+1
-1
lms/envs/aws.py
+4
-0
No files found.
common/djangoapps/student/views.py
View file @
528fcd7f
...
@@ -786,7 +786,7 @@ def test_center_login(request):
...
@@ -786,7 +786,7 @@ def test_center_login(request):
error_url
=
request
.
POST
.
get
(
"errorURL"
)
error_url
=
request
.
POST
.
get
(
"errorURL"
)
if
client_candidate_id
==
"edX003671291147"
:
if
client_candidate_id
==
"edX003671291147"
:
authenticate
(
username
=
"pearson"
,
password
=
"12345"
)
authenticate
(
username
=
"pearson
test
"
,
password
=
"12345"
)
return
redirect
(
'/courses/MITx/6.002x/2012_Fall/courseware/Final_Exam/Final_Exam_Fall_2012/'
)
return
redirect
(
'/courses/MITx/6.002x/2012_Fall/courseware/Final_Exam/Final_Exam_Fall_2012/'
)
else
:
else
:
raise
Http404
raise
Http404
...
...
lms/envs/aws.py
View file @
528fcd7f
...
@@ -79,3 +79,6 @@ XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
...
@@ -79,3 +79,6 @@ XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
if
'COURSE_ID'
in
ENV_TOKENS
:
if
'COURSE_ID'
in
ENV_TOKENS
:
ASKBOT_URL
=
"courses/{0}/discussions/"
.
format
(
ENV_TOKENS
[
'COURSE_ID'
])
ASKBOT_URL
=
"courses/{0}/discussions/"
.
format
(
ENV_TOKENS
[
'COURSE_ID'
])
# Temporary hack for testing Pearson
MITX_FEATURES
[
'ENABLE_PEARSON_HACK_TEST'
]
=
True
\ No newline at end of file
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