diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py
index 7d4e492711..040dd56c69 100644
--- a/common/djangoapps/student/views.py
+++ b/common/djangoapps/student/views.py
@@ -367,9 +367,7 @@ def change_enrollment(request):
@ensure_csrf_cookie
def accounts_login(request, error=""):
-
- return render_to_response('accounts_login.html', {'error': error})
-
+ return render_to_response('login.html', {'error': error})
# Need different levels of logging
diff --git a/lms/templates/login.html b/lms/templates/login.html
index 646ad1fa6f..2c024bcf39 100644
--- a/lms/templates/login.html
+++ b/lms/templates/login.html
@@ -1,6 +1,7 @@
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
+<%! from django.core.urlresolvers import reverse %>
<%block name="title">
Log into your edX Account%block>
<%block name="js_extra">
@@ -28,6 +29,19 @@
});
+
+
+
+
+
%block>
@@ -45,7 +59,7 @@
Login Form
-
+
+
diff --git a/lms/urls.py b/lms/urls.py
index 864cbc919f..02c2761f28 100644
--- a/lms/urls.py
+++ b/lms/urls.py
@@ -15,7 +15,7 @@ urlpatterns = ('',
url(r'^update_certificate$', 'certificates.views.update_certificate'),
url(r'^$', 'branding.views.index', name="root"), # Main marketing page, or redirect to courseware
url(r'^dashboard$', 'student.views.dashboard', name="dashboard"),
- url(r'^signin$', 'student.views.signin_user', name="signin_user"),
+ url(r'^login$', 'student.views.signin_user', name="signin_user"),
url(r'^register$', 'student.views.register_user', name="register_user"),
url(r'^admin_dashboard$', 'dashboard.views.dashboard'),
@@ -41,8 +41,8 @@ urlpatterns = ('',
url(r'^accounts/login$', 'student.views.accounts_login', name="accounts_login"),
- url(r'^login$', 'student.views.login_user', name="login"),
- url(r'^login/(?P[^/]*)$', 'student.views.login_user'),
+ url(r'^login_ajax$', 'student.views.login_user', name="login"),
+ url(r'^login_ajax/(?P[^/]*)$', 'student.views.login_user'),
url(r'^logout$', 'student.views.logout_user', name='logout'),
url(r'^create_account$', 'student.views.create_account'),
url(r'^activate/(?P[^/]*)$', 'student.views.activate_account', name="activate"),