Source for file remind.php
Documentation is available at remind.php
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
require_once JPATH_COMPONENT.
'/controller.php';
* Reset controller class for Users.
* Method to request a username reminder.
// Check the request token.
$model =
$this->getModel('Remind', 'UsersModel');
$data =
$this->input->post->get('jform', array(), 'array');
// Submit the password reset request.
$return =
$model->processRemindRequest($data);
// Check for a hard error.
// Get the route to the next page.
$itemid =
$itemid !==
null ?
'&Itemid='.
$itemid :
'';
$route =
'index.php?option=com_users&view=remind'.
$itemid;
// Go back to the request form.
$message =
JText::sprintf('COM_USERS_REMIND_REQUEST_FAILED', $model->getError());
// The request succeeded.
// Get the route to the next page.
$itemid =
$itemid !==
null ?
'&Itemid='.
$itemid :
'';
$route =
'index.php?option=com_users&view=login'.
$itemid;
$message =
JText::_('COM_USERS_REMIND_REQUEST_SUCCESS');
Documentation generated on Tue, 19 Nov 2013 15:11:45 +0100 by phpDocumentor 1.4.3