mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Update tracker get token api
This commit is contained in:
parent
6b3294bd60
commit
a521985e98
@ -472,11 +472,10 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
||||
public Response getTraccarUserToken() {
|
||||
|
||||
if (HttpReportingUtil.isTrackerEnabled()) {
|
||||
String loggedUserName = CarbonContext.getThreadLocalCarbonContext().getUsername();
|
||||
JSONObject obj = new JSONObject(DeviceAPIClientServiceImpl.returnUser(loggedUserName));
|
||||
String currentUser = CarbonContext.getThreadLocalCarbonContext().getUsername();
|
||||
JSONObject obj = new JSONObject(DeviceAPIClientServiceImpl.returnUser(currentUser));
|
||||
|
||||
log.info("=================");
|
||||
log.info(loggedUserName);
|
||||
log.info(obj.toString());
|
||||
log.info("==================");
|
||||
if(obj.has("error")){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user