Commit 8048a4b2 by Brian Talbot

Studio: changes URL for password reset to direct to LMS login view

STUD-689
parent f6b69eab
......@@ -38,7 +38,7 @@ def login_page(request):
csrf_token = csrf(request)['csrf_token']
return render_to_response('login.html', {
'csrf': csrf_token,
'forgot_password_link': "//{base}/#forgot-password-modal".format(base=settings.LMS_BASE),
'forgot_password_link': "//{base}/login#forgot-password-modal".format(base=settings.LMS_BASE),
})
......
......@@ -16,6 +16,11 @@
// adding js class for styling with accessibility in mind
$('body').addClass('js').addClass(view_name);
// show forgot password modal UI if URL contains matching DOM ID
if ($.deparam.fragment()['forgot-password-modal'] !== undefined) {
$('.pwd-reset').click();
}
// new window/tab opening
$('a[rel="external"], a[class="new-vp"]')
.click( function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment