I want to disable the "Forgot Password" and "Forgot Username" options in Joomla 3.3 login form. I was able to hide those options from the login form by overriding its default.php; however, they still can be accessed through these links:
/index.php/login?view=remind
/index.php/login?view=reset
So, how can I disable those two options completely?
You could make a template override for these two views with the redirection you need. You have to put the files under:
/templates/*your_template/html/com_users/remind/default.php
/templates/*your_template/html/com_users/reset/default.php
And add in the default.php the following code:
<?php
/**
* @package Joomla.Site
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$app->redirect(JRoute::_(JURI::root()));
?>
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With