diff --git a/common/djangoapps/external_auth/tests/test_ssl.py b/common/djangoapps/external_auth/tests/test_ssl.py index a1df6607eb..aba61434fe 100644 --- a/common/djangoapps/external_auth/tests/test_ssl.py +++ b/common/djangoapps/external_auth/tests/test_ssl.py @@ -170,7 +170,7 @@ class SSLClientTest(ModuleStoreTestCase): """ response = self.client.get(reverse('dashboard'), follows=True) self.assertEqual(response.status_code, 302) - self.assertIn(reverse('accounts_login'), response['location']) + self.assertIn(reverse('signin_user'), response['location']) response = self.client.get( reverse('dashboard'), follow=True, diff --git a/common/djangoapps/student/tests/test_login.py b/common/djangoapps/student/tests/test_login.py index 1f4a8bcb06..267b42d6a1 100644 --- a/common/djangoapps/student/tests/test_login.py +++ b/common/djangoapps/student/tests/test_login.py @@ -429,7 +429,7 @@ class ExternalAuthShibTest(ModuleStoreTestCase): """ response = self.client.get(reverse('dashboard')) self.assertEqual(response.status_code, 302) - self.assertEqual(response['Location'], 'http://testserver/accounts/login?next=/dashboard') + self.assertEqual(response['Location'], 'http://testserver/login?next=/dashboard') @unittest.skipUnless(settings.FEATURES.get('AUTH_USE_SHIB'), "AUTH_USE_SHIB not set") def test_externalauth_login_required_course_context(self): @@ -440,7 +440,7 @@ class ExternalAuthShibTest(ModuleStoreTestCase): TARGET_URL = reverse('courseware', args=[self.course.id.to_deprecated_string()]) # pylint: disable=invalid-name noshib_response = self.client.get(TARGET_URL, follow=True) self.assertEqual(noshib_response.redirect_chain[-1], - ('http://testserver/accounts/login?next={url}'.format(url=TARGET_URL), 302)) + ('http://testserver/login?next={url}'.format(url=TARGET_URL), 302)) self.assertContains(noshib_response, ("Sign in or Register | {platform_name}" .format(platform_name=settings.PLATFORM_NAME))) self.assertEqual(noshib_response.status_code, 200) diff --git a/common/djangoapps/student/tests/test_login_registration_forms.py b/common/djangoapps/student/tests/test_login_registration_forms.py index 3fa383b0a5..3b0606d8b9 100644 --- a/common/djangoapps/student/tests/test_login_registration_forms.py +++ b/common/djangoapps/student/tests/test_login_registration_forms.py @@ -90,7 +90,7 @@ class LoginFormTest(ThirdPartyAuthTestMixin, UrlResetMixin, ModuleStoreTestCase) self.assertRedirects( response, u"{url}?next={redirect_url}".format( - url=reverse("accounts_login"), + url=reverse("signin_user"), redirect_url=self.courseware_url ) ) diff --git a/lms/djangoapps/course_wiki/middleware.py b/lms/djangoapps/course_wiki/middleware.py index ba824f305f..89fff00220 100644 --- a/lms/djangoapps/course_wiki/middleware.py +++ b/lms/djangoapps/course_wiki/middleware.py @@ -46,7 +46,7 @@ class WikiAccessMiddleware(object): # wiki pages are login required if not request.user.is_authenticated(): - return redirect(reverse('accounts_login'), next=request.path) + return redirect(reverse('signin_user'), next=request.path) course_id = course_id_from_url(request.path) wiki_path = request.path.partition('/wiki/')[2] diff --git a/lms/djangoapps/course_wiki/tests/tests.py b/lms/djangoapps/course_wiki/tests/tests.py index 323753c89a..172ac0ad85 100644 --- a/lms/djangoapps/course_wiki/tests/tests.py +++ b/lms/djangoapps/course_wiki/tests/tests.py @@ -165,4 +165,4 @@ class WikiRedirectTestCase(LoginEnrollmentTestCase, ModuleStoreTestCase): # and end up at the login page resp = self.client.get(course_wiki_page, follow=True) target_url, __ = resp.redirect_chain[-1] - self.assertTrue(reverse('accounts_login') in target_url) + self.assertTrue(reverse('signin_user') in target_url) diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index b93fa1dedb..d188a85e58 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -543,7 +543,7 @@ class TestPayAndVerifyView(UrlResetMixin, ModuleStoreTestCase): original_url = reverse(url_name, kwargs={'course_id': unicode(course.id)}) login_url = u"{login_url}?next={original_url}".format( - login_url=reverse('accounts_login'), + login_url=reverse('signin_user'), original_url=original_url ) self.assertRedirects(response, login_url) diff --git a/lms/envs/common.py b/lms/envs/common.py index 63cb891399..1d8105c632 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -546,8 +546,8 @@ DEV_CONTENT = True EDX_ROOT_URL = '' -LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/accounts/login' -LOGIN_URL = EDX_ROOT_URL + '/accounts/login' +LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/login' +LOGIN_URL = EDX_ROOT_URL + '/login' COURSE_NAME = "6.002_Spring_2012" COURSE_NUMBER = "6.002x" diff --git a/lms/static/js/ajax-error.js b/lms/static/js/ajax-error.js index 3e7202a156..460d2511fe 100644 --- a/lms/static/js/ajax-error.js +++ b/lms/static/js/ajax-error.js @@ -9,7 +9,7 @@ $(document).ajaxError(function (event, jXHR) { if (window.confirm(message)) { var currentLocation = window.location.href; - window.location.href = '/accounts/login?next=' + currentLocation; + window.location.href = '/login?next=' + currentLocation; }; } });