summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-08-23 11:26:41 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-08-23 11:26:41 -0400
commit0651aca67592f6513f7d4ff36367966b4e3d1cab (patch)
tree7110811eec93add8d5e2544471cb6e098062b508
parent3f6e819787282ec6a80e9af36bcff7c08e1bb09f (diff)
fixes #847
-rwxr-xr-xwww/js/app.js30
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') {