cancel
Showing results for 
Search instead for 
Did you mean: 
csebree
Surveyor

Forgot Password Link on login page

Does anyone have a java script that they would be willing to share to change the wording for the "Forgot Password?" link on the login for Canvas. Our CSM said we could change it that way. We want to change so that our teachers and students quit clicking on it and expecting an email to reset their password since we use ldap.

0 Kudos
1 Reply
bneporadny
Navigator

Hi Chad,

I know of two options. The first one you can choose to remove the link from the screen all together as referenced in the discussion below. 

https://community.canvaslms.com/message/91481-re-remove-or-change-forgot-password-link?commentID=914...

Secondly you can choose to change the link for the forgot password‌ link to something of your choosing.  #javascript‌ below  is what we use to make this happen. 

$(document).ready(function () {
if(document.URL.split('/')[3] === 'login'){
document.getElementsByClassName('ic-Login__forgot')[0].style.visibility = 'hidden';
var ResetPasswordURL = '<a href="YourURLHere">Forgot Password?</a>';
$("#footer").prepend("<div style='font-color:#fff;margin-right:20px font-weight:bolder'>" + ResetPasswordURL + "</div>");
}}

Hope this helps.