From 0651aca67592f6513f7d4ff36367966b4e3d1cab Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 23 Aug 2019 11:26:41 -0400 Subject: fixes #847 --- www/js/app.js | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'www/js') 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') { -- cgit v1.2.3