If you own or administer a website, may be there are several reasons to hide the backend as much as possible. The login form is necessary for any membership site. One might like to remove its āForgot usernameā and āForgot passwordā links from the login area. In this tutorial, Iāll show how to remove these two links from a Joomla siteās template.
Remember, this action involves template file editing. So, if you make any mistake that may have negative impact on your site. Create a duplicate copy of the template and take a full website backup before proceed, so that you can revert the changes if needed.
Step 1: Remove username/password reset links from User components
At first login to your siteās administration area. Go to Extensions > Templates.

It will show you all of the templates installed on your Joomla site. Click the Templates tab from the left and make sure the filter is set as Site.Ā Now go to the template editor panel by clicking the active templateās title.

Go to Create overrides > Components > com_users > Login.Ā Once you click the āLoginā link there, it will show a message āOverride created in \templates\protostar\html\com_users\loginā.

Now go to the Editor tab and expand html > com_users > login > default_login.php. It will open the file to edit.

Now we need to remove few codes that are responsible for username/password reset forms. Select the lines shown in the screenshot (Line 88-95). Delete them and press the green Save button.

Step 2: Remove username/password reset links from Login module
Again visit your siteās administration area. Go to Extensions > Templates. Click the Templates tab from the left while the filter is set as Site. Open the template editor panel by clicking the current templateās title.Ā Go to Create overrides > Modules > mod_login.Ā

The system will show you a message āOverride created in \templates\protostar\html\mod_loginā.
Enter into the Editor tab. Go to html > mod_login > default.php

An editor box will open. Select and remove the lines from 105 to 112. See screenshot for better understanding. After deleting these codes, save changes with a click on the green Save button.
And itās done.

Now there is no Username or Password recovery link in the login area.
After I deleted the lines and saved, my site does not open and showing HTTP error 500.
I would be really thankful for help.
Attila
in Helix3 if we talk about login module(!) check that file:
[b]templates\shaper_helix3\html\mod_login\default.php[/b]
edit inside lines 39-52
---
Alternative safe method to hide those two links is
[code type="xml"]#form-login-password {display:none !important;}[/code]