diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-28 09:31:02 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-11-28 09:31:02 -0500 |
| commit | 20cdf05e6339b3853dc1d61db124a08856cf2258 (patch) | |
| tree | 30b02b0e0ccf8e8d6294b8f025f261702c265f5a /www/js | |
| parent | 399407a41d2a0193a02892b1273a83585351ea3b (diff) | |
every time we reauth, lets change random value
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/MontageCtrl.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 0e3d34d0..2e70b127 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -53,6 +53,9 @@ angular.module('zmApp.controllers') var as = $scope.$on("auth-success", function () { + NVRDataModel.debug ("Auth success, recomputing rand value..."); + randEachTime(); + /* var tnow = new Date(); var s = Math.round((tnow - timeInMontage) / 1000); NVRDataModel.debug ("Montage re-auth: time since we are here: " + s + @@ -1779,7 +1782,7 @@ angular.module('zmApp.controllers') "/nph-zms?mode=" + getMode() + "&monitor=" + monitor.Monitor.Id + "&scale=" + $scope.LoginData.montageQuality + - "&rand=" + randToAvoidCacheMem + + "&rand=" + randToAvoidCacheMem + monitor.Monitor.Id + "&buffer=1000" + $rootScope.authSession + appendConnKey(monitor.Monitor.connKey); |
