Hi,
On easysocial 1.2.16 I used
$data = array(
"name" => $username,
"username" => $username,
"password" => $password,
"email" => $email
);
$profile = $profileModel->getDefaultProfile();
$user = $registrationModel->moduleCreateUser($profile->id, $data);
But on easysocial 1.3.8 moduleCreateUser disappeared, i tried
$data = array(
"name" => $username,
"username" => $username,
"password" => $password,
"email" => $email
);
$profile = $profileModel->getDefaultProfile();
$registration = FD::table('Registration');
$registration->load();
$registration->profile_id = $profile->id;
$registration->values = FD::json()->encode($data);
$registration->store();
$user = $registrationModel->createUser($registration);
and I obtain a sql error :
Unknown column 'privacy' in 'field list' SQL=UPDATE `#__social_users` SET `alias`=NULL,`state`='2',`params`='',`connections`='0',`type`='joomla',`permalink`='',`auth`='',`completed_fields`='0',`privacy`=NULL WHERE `user_id`='784'