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:
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.