Forums

Chronoforms AUTO LOGIN code

alexlate 18 Sep, 2010
Hey guys - love this product but having a major problem. I am using Chronoforms with Community Builder plugin and need to have an auto login initiated after user registers. I know it can be done within cf_cb_registration.php. The code needs to be tweaked and inserted within php file. However I do not have enough knowledge of PHP.

global $mainframe;
$credentials = array();
$credentials['email'] = $post['email'];
$credentials['password'] = $post['password'];
$mainframe->login($credentials);

If anyone could help me with this problem. I searched extensively and could only find solutions for regular Joomla registration and regular non-chronoforms CB registration - but nothing at all for Chronoforms CB plugin. Any help is highly appreciated.
Max_admin 20 Sep, 2010
Hi Alexlate,

Do you have a $post variable before this code with all the posted data ? there is a line before this code to set the $post variable, make sure you have it, and check the fields names as well, you need "email" and "password" fields, and where is the username field ? you need username and password to login!!!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.