1. Merlin3322
  2. Commercial Templates
  3. Wednesday, 01 November 2017
  4.  Subscribe via email
How is it possible to eliminate the "Forgot Username" and "Forgot password" options in the login page?

I found something in the internet, that it is necessary to eliminate the following lines in the „/html/mod_login/default.php“ in the Template folder:


<li>
<a href="/<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
</li>
<li>
<a href="/<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
</li>


But this is not working

Axel
Accepted Answer Pending Moderation
0
Votes
Undo
I found it :D

I have created an overwrite for com_users and than modified the login folder the default_login.php file.

It is necassary to delete the following lines:


<li>
<a href="/<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?>
</a>
</li>
<li>
<a href="/<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?>
</a>
</li>


Axel
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Nice work... thank you for the update! :)

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!