Create a config option for enabling a Pearson login in a totally hacky manner.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user