From c667a1dd0f0f881e6a4c022e31ee75cbe12ef876 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 8 Apr 2018 09:23:26 -0400 Subject: warn user for basic auth --- www/js/LoginCtrl.js | 5 +++++ www/lang/locale-en.json | 1 + www/templates/login.html | 3 +++ 3 files changed, 9 insertions(+) (limited to 'www') 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 diff --git a/www/lang/locale-en.json b/www/lang/locale-en.json index 8015468d..ea6c82e7 100644 --- a/www/lang/locale-en.json +++ b/www/lang/locale-en.json @@ -401,6 +401,7 @@ "kVideoLoading" :"Loading Video", "kVideoMp4Warning" :"It is currently not possible to know when video is fully downloaded. Please track file size of download.", "kWake" :"Wake", + "kWarningBasicAuth" :"Basic auth may interfere with live streaming. Please read FAQ", "kWarningLargeTimeline" :"A large value can affect timeline performance. If you find timeline performance slow, try reducing the value to 200 and work your way up from there.", "kWeek" :"Week", "kWelcomeWizard" :"Welcome to zmWizard", diff --git a/www/templates/login.html b/www/templates/login.html index 36f216b4..472075cf 100644 --- a/www/templates/login.html +++ b/www/templates/login.html @@ -42,6 +42,9 @@ + +

{{'kWarningBasicAuth' | translate}}

+