Joomla 3.3 Disable "Reset Password" Functionality

I want to disable the "Forgot Password" and "Forgot Username" options in the Joomla 3.3 login form. I was able to hide these options from the login form by overriding my default.php; however, they are still available through these links:

/index.php/login?view=remind
/index.php/login?view=reset

So how can I completely disable these two options?

+4
source share
3 answers

You can override the template for these two views with the necessary redirection. You should put the files under:

/templates/*your_template/html/com_users/remind/default.php
/templates/*your_template/html/com_users/reset/default.php

And add the following code to default.php:

<?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()));

?>

,

+7

.htaccess, 403 index.php. , .;)

+2

Joomla: 3.4.8.

1) "" → ""

2)

3)

3 com_user, " " . "com_user" → "" "reset".

3.

4) in the reset section, recall that in step 3 you see the default.php file. you can write there at the top of default.php: / ** * @package Joomla.Site * @subpackage com_users * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * /

header ('Location: /'); die();

sorry for my English

0
source

All Articles