My only issue is how to make them login automagically in that intermediate step, right after they register. I was thinking of using the AutoActions plugin, but have no ideia on the sintax to use.
This is very possible using CB Auto Actions. You'll need to set it up exactly as follows. Please note this will not work if you require admin approval or email confirmation.
Action 1 (must be first!)
Type: Code
Trigger: onAfterUserRegistration
User: Automatic
Access: Everybody
Condition: [block] Equal To 0
Method: PHP (use either of the 2 methods)
Code:
Code:
cbimport( 'cb.authentication' );
$cbAuthenticate = new CBAuthentication();
$messagesToUser = array();
$alertmessages = array();
$redirect_url = null;
$resultError = $cbAuthenticate->login( '[username]', false, 0, 1, $redirect_url, $messagesToUser, $alertmessages, 0 );
Return: Silent
Action 2 (must be after the above!)
Type: Redirect
Trigger: onAfterUserRegistration
User: Automatic
Access: Everybody
Condition: [block] Equal To 0
URL: index.php?option=com_comprofiler&task=userDetails
The above will provide auto login and redirect to profile edit. Please ensure you're using CB Auto Actions 2.1.0 for the above to properly work. Please note PHP execution is not allowed on some hosts so be sure to try both methods and if neither work you'd need to develop a custom integration to accomplish auto login.