Create a config option for enabling a Pearson login in a totally hacky manner.

This commit is contained in:
David Ormsbee
2012-11-07 14:08:55 -05:00
parent 92f2fbf0f8
commit 528fcd7f4e
2 changed files with 4 additions and 1 deletions

View File

@@ -786,7 +786,7 @@ def test_center_login(request):
error_url = request.POST.get("errorURL")
if client_candidate_id == "edX003671291147":
authenticate(username="pearson", password="12345")
authenticate(username="pearsontest", password="12345")
return redirect('/courses/MITx/6.002x/2012_Fall/courseware/Final_Exam/Final_Exam_Fall_2012/')
else:
raise Http404

View File

@@ -79,3 +79,6 @@ XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
if 'COURSE_ID' in ENV_TOKENS:
ASKBOT_URL = "courses/{0}/discussions/".format(ENV_TOKENS['COURSE_ID'])
# Temporary hack for testing Pearson
MITX_FEATURES['ENABLE_PEARSON_HACK_TEST'] = True