The user store done in activateUser is causing it, but by default settings for a new user set as follows
Confirmed = yes
Approved = yes
Banned = No
The logic works the other way around - The conditions above will trigger "activateUser"
If I create a new user and set Approved to "No" Then the Auto action works as expected. ie i get a membership number
Reversing the order of the 2 events in the code fixes the problem: (libraries/CBLib/CB/Database/Table/UserTable.php - line 1120)
Change this:
Code:
$_PLUGINS->trigger( 'onAfterNewUser', array( &$this, &$this, false, true ) );
if ( $this->block == 0 && $this->approved == 1 && $this->confirmed ) {
activateUser( $this, 2, 'NewUser', false, $isNew );
}
To this:
Code:
if ( $this->block == 0 && $this->approved == 1 && $this->confirmed ) {
activateUser( $this, 2, 'NewUser', false, $isNew );
}
$_PLUGINS->trigger( 'onAfterNewUser', array( &$this, &$this, false, true ) );