Merge pull request #254 from ayyoob/transport

updated authentication in api
This commit is contained in:
Ruwan 2016-05-15 20:07:02 +05:30
commit 8f0840e3df

View File

@ -129,7 +129,7 @@ utility = function () {
log.error("User object was not found in the session");
throw constants.ERRORS.USER_NOT_FOUND;
}
var unitName = user.domain + "cdmf.unit.device.type." + deviceType + "." + unitPostfix;
var unitName = user.domain + ".cdmf.unit.device.type." + deviceType + "." + unitPostfix;
if (new File("/app/units/" + unitName).isExists()) {
return unitName;
}