Skip to content
Snippets Groups Projects
Commit 3cd5eed7 authored by Uma's avatar Uma
Browse files

Fixes #1155 Login Api enahnced to get preference details of user

parent ca600435
No related branches found
No related tags found
No related merge requests found
......@@ -160,8 +160,23 @@
$webserviceObject = VtigerWebserviceObject::fromName($adb,"Users");
$userId = vtws_getId($webserviceObject->getEntityId(),$userDetails->id);
$vtigerVersion = vtws_getVtigerVersion();
$resp = array("sessionName"=>$this->sessionManager->getSessionId(),"userId"=>$userId,"version"=>$API_VERSION,"vtigerVersion"=>$vtigerVersion);
return $resp;
$userInfo = array(
'username' => $userDetails->user_name,
'first_name' => $userDetails->first_name,
'last_name' => $userDetails->last_name,
'email' => $userDetails->email1,
'time_zone' => $userDetails->time_zone,
'hour_format' => $userDetails->hour_format,
'date_format' => $userDetails->date_format,
'is_admin' => $userDetails->is_admin,
'call_duration' => $userDetails->callduration,
'other_event_duration' => $userDetails->othereventduration,
'sessionName'=>$this->sessionManager->getSessionId(),
'userId'=>$userId,
'version'=>$API_VERSION,
'vtigerVersion'=>$vtigerVersion
);
return $userInfo;
}
}
} catch (DuplicateException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment