This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal
Thursday 27 July 2017 6:36:35 pm - 3 replies
Hello ,
i have a big problem about updating user information ,
i have an array of information like :
$data = array(
"last_name" => "toto",
"first_name" => "tata",
"email" => "change@mymail.com",
"cuid" =>"toto_tata"
);
$userobj = \eZUser::fetch(45874);
$user=\eZContentObject::fetch(45874);
$userAccountStatus= $userobj->isEnabled();
$newdata['user_account']= $data['cuid'] . '|' . $data['email'] . '|' . $userobj->passwordHash . '|' .
\eZUser::passwordHashTypeName(\eZUser::hashType()) . '|' . $userAccountStatus;
$updateData= array('attributes'=>$newdata);
\eZContentFunctions::updateAndPublishObject($user, $updateData);
\eZContentCacheManager::clearObjectViewCache(45874);
the first time , this code can update my user attributs , but if i call it agin for the second time , i can't work .
there is any suggestion for that ? i really don't understand what is happened here ?
Modified on Thursday 27 July 2017 6:55:09 pm by Adil Kabbali
You must be logged in to post messages in this topic!