Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joomla 3.3 Disable "Reset Password" Functionality

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?

like image 904
Loers Antario Avatar asked Oct 01 '14 23:10

Loers Antario


1 Answers

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

like image 188
emmanuel Avatar answered Sep 29 '22 18:09

emmanuel