summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-05-14 13:33:00 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-05-14 13:33:00 -0400
commit576d9058a4afb2a179f8c6a338f9b6c08108822b (patch)
treeeeeb2e12e73882f63a74e188164540c6a78bd67e /www/js/MontageCtrl.js
parentadb63ae77e1318a1c42dd0fe8ce31cfa7584194b (diff)
initial support for tokens #817
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index a8b5b49d..c6705ef0 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -631,7 +631,7 @@ angular.module('zmApp.controllers')
apiurl += '/\'' + interval + '\' HOUR_SECOND';
}*/
- apiurl += '.json?sort=StartTime&direction=desc&limit=1';
+ apiurl += '.json?sort=StartTime&direction=desc&limit=1'+$rootScope.authSession;
NVR.debug ("Getting event count using:"+apiurl);
$http.get(apiurl)
@@ -721,7 +721,7 @@ angular.module('zmApp.controllers')
var apiurl = NVR.getLogin().apiurl;
//console.log ("ALARM CALLED WITH " +JSON.stringify(monitor));
- var alarmurl = apiurl + "/monitors/alarm/id:" + monitor.Monitor.Id + "/command:status.json";
+ var alarmurl = apiurl + "/monitors/alarm/id:" + monitor.Monitor.Id + "/command:status.json?"+$rootScope.authSession;
// console.log("Alarm Check: Invoking " + alarmurl);
$http.get(alarmurl)
@@ -1916,7 +1916,7 @@ angular.module('zmApp.controllers')
var ld = NVR.getLogin();
var url = ld.apiurl;
var eid = monitor.Monitor.lastEvent.events[0].Event.Id;
- url += '/events/'+monitor.Monitor.lastEvent.events[0].Event.Id+'.json';
+ url += '/events/'+monitor.Monitor.lastEvent.events[0].Event.Id+'.json?'+$rootScope.authSession;
var mid = monitor.Monitor.Id;
ld.lastEventCheckTimes[mid] = (new moment()).tz(NVR.getTimeZoneNow()).format('YYYY-MM-DD HH:mm:ss');