Thursday, November 20, 2014

How I disabled the Forgot Password link on the moodle login page

One of our moodle instances is authenticating against an LDAP server, which means we do not want anyone trying to reset their password via the native moodle forgot password link on the login page.

This site is version 2.6.2+

I found this forum that inspired me.

Steps I took to disable the link.

  1. Logged into the server
  2. opened the directory where the moodle code is
  3. opened siteroot/login/index_form.html 
  4. commented out the code on line 56
  5. div class="forgetpass" a href="forgot_password.php" ?php print_string("forgotten") ?/a div
That was it.  Ok, I did a little more tweaking, but it is not important.

Before



After

Once in awhile, things are simple.

2 comments: