Added "verify ssl certificate" setting in Admin panel interface (Security tab)

This commit is contained in:
RainLoop Team 2014-10-18 19:29:09 +04:00
parent d17f249f45
commit 430d36a648
3 changed files with 20 additions and 1 deletions

View file

@ -28,6 +28,8 @@
this.capaOpenPGP = ko.observable(Settings.capa(Enums.Capa.OpenPGP));
this.capaTwoFactorAuth = ko.observable(Settings.capa(Enums.Capa.TwoFactor));
this.verifySslCertificate = ko.observable(!!Settings.settingsGet('VerifySslCertificate'));
this.adminLogin = ko.observable(Settings.settingsGet('AdminLogin'));
this.adminLoginError = ko.observable(false);
this.adminPassword = ko.observable('');
@ -130,6 +132,12 @@
'UseLocalProxyForExternalImages': bValue ? '1' : '0'
});
});
this.verifySslCertificate.subscribe(function (bValue) {
Remote.saveAdminConfig(null, {
'VerifySslCertificate': bValue ? '1' : '0'
});
});
};
SecurityAdminSetting.prototype.onHide = function ()