Where is sugarCRM hashing the password from the login form?

Hello. I am developing an API that pushes Users into the system from another product of my company. All is fine except I can not log in with the new User. This how the user is inserted into the CRM

$user_bean->user_name=$user_name;
$user_bean->first_name=$first_name;
$user_bean->last_name=$last_name;
$user_bean->title=$title;
$user_bean->status=$status;
$user_bean->is_admin=$is_admin;
$user_bean->user_hash=$user_hash;
$user_bean->save();
if (!empty($email))
{
$user_bean->emailAddress->addAddress($email,true);
$user_bean->emailAddress->save($user_bean->id, $user_bean->module_dir);
}

Now, from the external source I receive the password already hashed, I put that value into the user_hash field. In what file (and maybe even what line of code) is sugarCRM hashing the password from the login form. I know the password, I have the hashed version the secondary product generated, I want to compare the hash sugar expects, to see if it matches the one I have. For that I would like to do a print_r or similar.

Parents Reply Children
No Data