Disable Lost Password

Re: Disable Lost Password

by Kim Park -
Number of replies: 2

I ended up using JD Hall's tip from 2007 and edited both \login\index_form.html & login\block\login.php to comment out statements so we would not see "Lost Password?" on any of our login pages since we LDAP Authenticate.  Would be nice if it were an option to hide, but this works and it'll mitigate a LOT of emails that would head my way. smile

In reply to Kim Park

Re: Disable Lost Password

by Mike Flender -

For Moodle 2.8.9 I edited /moodle/login/index_form.html to remove the Forgotton password link on login page by changing


<div class="forgetpass"><a href="forgot_password.php"><?php print_string("forgotten") ?></a></div>

 </form>


To look like


<!-- <div class="forgetpass"><a href="forgot_password.php"><?php print_string("forgotten") ?></a></div></form>-->

I hope this helps someone else.

Mike Flender

In reply to Mike Flender

Re: Disable Lost Password

by Mike Flender -

In the "To look like" code above my return was removed. 

<--<div class="forgetpass"><a href="forgot_password.php"><?php print_string("forgotten") ?></a></div>

 </form>-->

Sorry for any confusion.