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

STUD-689
This commit is contained in:
Brian Talbot
2013-11-01 14:45:24 -04:00
parent f6b69eab4e
commit 8048a4b25b
2 changed files with 6 additions and 1 deletions

View File

@@ -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),
})

View File

@@ -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() {