diff options
Diffstat (limited to 'www/js')
| -rwxr-xr-x | www/js/app.js | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/www/js/app.js b/www/js/app.js index 1d3d1250..69626d66 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -925,20 +925,26 @@ angular.module('zmApp', [ $rootScope.$on("auth-success", function () { $rootScope.isLoggedIn = true; - var contentBannerInstance = $ionicContentBanner.show({ - text: ['ZoneMinder ' + $translate.instant('kAuthSuccess')], - interval: 2000, - type: 'info', - transition: 'vertical' - }); - - $timeout(function () { - contentBannerInstance(); - }, 2000); - NVR.debug("auth-success broadcast:Successful"); - var ld = NVR.getLogin(); + if (ld.isUseAuth || ld.isUseBasicAuth) { + var contentBannerInstance = $ionicContentBanner.show({ + text: ['ZoneMinder ' + $translate.instant('kAuthSuccess')], + interval: 2000, + type: 'info', + transition: 'vertical' + }); + + $timeout(function () { + contentBannerInstance(); + }, 2000); + NVR.debug("auth-success broadcast:Successful"); + + } + else { + NVR.debug ("auth not being used, not creating banner"); + } + // we need AUTH_HASH_LOGIN to be on for WKWebView /mobile if (ld.isUseAuth && $rootScope.platformOS != 'desktop') { |
