Hi
thanks a lot.
You are right I do not need to md5 it makes it as I see now when followed your note, thanks.
I checked the structure of users table and the pass column is not auto md5 so how the string gets md5 , please?
On your line 6: $profile->set('email', '
[email protected]');
The script dies. Do you kn0w what is wrong with this method?
Here is my script now:
$userTmp = $modx->newObject("modUser");
$userTmp->set('username', $lender);
$userTmp->set("password", $pass);
$profile1 = $modx->newObject("modProfile");
// $profile1->set('email', '[email protected]');
$userTmp->addOne($profile1);
$userTmp->save();
But it still does not add any data to second table **atributes .. Is it due to no field for that table was set? Could you suggest what is wrong with line 6 please?
Thanks a lot.