summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/FirstUseCtrl.js2
-rw-r--r--www/js/LoginCtrl.js2
-rw-r--r--www/js/NVR.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/www/js/FirstUseCtrl.js b/www/js/FirstUseCtrl.js
index c6f55ef4..04146855 100644
--- a/www/js/FirstUseCtrl.js
+++ b/www/js/FirstUseCtrl.js
@@ -18,7 +18,7 @@ angular.module('zmApp.controllers').controller('zmApp.FirstUseCtrl', ['$scope',
//
if (window.cordova) {
- cordova.plugin.http.setSSLCertMode('nocheck', function () {
+ cordova.plugin.http.setServerTrustMode('nocheck', function () {
NVR.debug('--> First use -> SSL is permissive, will allow any certs for now. You can change it later.');
}, function () {
NVR.log('-->First Use -> Error setting SSL permissive');
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 4a083930..e64d7a6f 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -754,7 +754,7 @@ function mobilePinConfig () {
//alert("Enabling insecure SSL");
NVR.log(">>>> Disabling strict SSL checking (turn off in Dev Options if you can't connect)");
- cordova.plugin.http.setSSLCertMode('nocheck', function () {
+ cordova.plugin.http.setServerTrustMode('nocheck', function () {
NVR.debug('--> SSL is permissive, will allow any certs. Use at your own risk.');
}, function () {
NVR.log('-->Error setting SSL permissive');
diff --git a/www/js/NVR.js b/www/js/NVR.js
index 80d3ddc4..65a18dbc 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -264,7 +264,7 @@ angular.module('zmApp.controllers')
//alert("Enabling insecure SSL");
log(">>>> Disabling strict SSL checking (turn off in Dev Options if you can't connect)");
- cordova.plugin.http.setSSLCertMode('nocheck', function () {
+ cordova.plugin.http.setServerTrustMode('nocheck', function () {
debug('--> SSL is permissive, will allow any certs. Use at your own risk.');
}, function () {
NVR.log('-->Error setting SSL permissive');