mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 17:26:17 +01:00
fix password protection in list wp sites
This commit is contained in:
@@ -88,12 +88,12 @@
|
|||||||
var settingMap = {
|
var settingMap = {
|
||||||
'search-indexing': 'searchIndex',
|
'search-indexing': 'searchIndex',
|
||||||
'debugging': 'debugging',
|
'debugging': 'debugging',
|
||||||
'password-protection': 'passwordprotection',
|
'password-protection': 'passwordProtection',
|
||||||
'maintenance-mode': 'maintenanceMode'
|
'maintenance-mode': 'maintenanceMode'
|
||||||
};
|
};
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
siteId: site.id,
|
WPid: site.id,
|
||||||
setting: setting,
|
setting: setting,
|
||||||
value: site[settingMap[setting]] ? 1 : 0
|
value: site[settingMap[setting]] ? 1 : 0
|
||||||
};
|
};
|
||||||
@@ -220,9 +220,8 @@
|
|||||||
// Disable password protection
|
// Disable password protection
|
||||||
var data = {
|
var data = {
|
||||||
WPid: site.id,
|
WPid: site.id,
|
||||||
setting: 'PasswordProtection',
|
setting: 'password-protection',
|
||||||
PPUsername: '',
|
value: 0
|
||||||
PPPassword: ''
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GLobalAjaxCall($http, "{% url 'UpdateWPSettings' %}", data,
|
GLobalAjaxCall($http, "{% url 'UpdateWPSettings' %}", data,
|
||||||
@@ -275,7 +274,8 @@
|
|||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
WPid: $scope.currentWP.id,
|
WPid: $scope.currentWP.id,
|
||||||
setting: 'PasswordProtection',
|
setting: 'password-protection',
|
||||||
|
value: 1,
|
||||||
PPUsername: $scope.currentWP.PPUsername,
|
PPUsername: $scope.currentWP.PPUsername,
|
||||||
PPPassword: $scope.currentWP.PPPassword
|
PPPassword: $scope.currentWP.PPPassword
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user