summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-08 09:23:26 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-08 09:23:26 -0400
commitc667a1dd0f0f881e6a4c022e31ee75cbe12ef876 (patch)
tree46945f0a7e6a5cf0eaa5fbcf644601e08411b2e5 /www/js/LoginCtrl.js
parent18e41df85b9b4c6d3ac88e66e57e235e7a322e83 (diff)
warn user for basic auth
Diffstat (limited to 'www/js/LoginCtrl.js')
-rw-r--r--www/js/LoginCtrl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 74efc2cd..1a728de4 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -245,6 +245,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
oldLoginData = '';
//console.log("**VIEW ** LoginCtrl Entered");
NVRDataModel.setAwake(false);
+ $scope.basicAuthUsed = false;
var ld = NVRDataModel.getLogin();
oldName = ld.serverName;
@@ -425,6 +426,10 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
$scope.loginData.streamingurl = $scope.loginData.url + "/cgi-bin";
}
+ $scope.basicAuthUsed = ($scope.loginData.url.indexOf('@') == -1) ? false:true;
+
+
+
};
//-------------------------------------------------------------------------------
// Adds http to url if not present