Step:1
Open the file: home directory/components/com_users/controllers/user.php
Step:2
Search the below code near line:61
// Perform the log in.
if (true === $app->login($credentials, $options)) {
// Success
$app->setUserState('users.login.form.data', array());
$app->redirect(JRoute::_($app->getUserState('users.login.form.return'), false));
} else {
// Login failed !
$data['remember'] = (int)$options['remember'];
$app->setUserState('users.login.form.data', $data);
$app->redirect(JRoute::_('index.php?option=com_users&view=login', false));
}
Step:3
After login redirect to Home page and same language
$reu=JRequest::getVar('lang', '', 'get', 'lang');
$app->redirect('index.php?lang='.$reu);
Replace the below line with above code
$app->redirect(JRoute::_($app->getUserState('users.login.form.return'), false));
1 comment:
Thanks.. Worked Perfectly... :))))
Post a Comment