Hi
I downloaded this Autologin plugin -
extensions.joomla.org/extensions/access-a-security/authentication/12640
for joomla 1.5
And it works ... after clicking SUBMIT when finishing the registration the user automaticaly is logged .. BUT .. I'm getting this 2 messages
1.This user has not yet confirmed e-mail address and account!
2.This user has not yet been approved by a moderator!
But I have these options set to NO in CB settings ...
Even when I want to enter in profile it says these messages.
Here is the code of the plugin :
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.plugin.plugin');
class plgUserAutolog_after_registration extends JPlugin {
//Constructeur
function plgUserAutolog_after_registration( &$subject ) {
parent::__construct( $subject );
}
function onAfterStoreUser($user, $isnew, $succes, $msg){
// just startup
global $mainframe, $model;
$usersipass = JRequest::getvar('username');
$usersipass = JRequest::getvar('password');
$mainframe->login($usersipass);
// You ca use the "return" hidden input in your form template
$return = trim(JRequest::getvar('return'));
if ($return!="") {
$mainframe->redirect(JRoute::_(base64_decode($return)));
} else {
$mainframe->redirect(JRoute::_('index.php'));
}
} // fonction
} // class
?>
Please have a look .
Cheers
Alex
Joomla 1.5.22 - CB 1.3