I have posted a quick solution before to hide or disable the ‘new user’ registration link and ‘forget password’ link, but the issue there is that you can still click on the link if you put your mouse in the right area on the page. It also leaves the separator characters on the page which looks ugly. This tip actually removes the whole table from the DOM so you can’t see the links or click on them.
To remove the links completely, go to Database Configuration -> Select Action -> Messages. Search for messagegroup = ‘login’ and messagekey = ‘forgetpassword’. Set the value to:
<script type="text/javascript">var e = document.getElementById("otherlinks"); e.parentNode.removeChild(e);</script>
Save and to go to the login page. The table that holds those links will now be gone and you can’t click on any of the links.
I haven’t tried it but it looks like a much better solution.
I have edited the login page but I’ll see if we can use something like this
This solution works aside from the fact that the messagekey should be forgotpassword, not forgetpassword.