code mistake

This commit is contained in:
Guillaume ARNOUX 2024-01-22 10:41:37 +01:00
parent b83e607ff9
commit bced05067a

View file

@ -219,7 +219,7 @@ class Server_Manager_Mailcow extends Server_Manager
], ],
"items" => $a->getDomain(), "items" => $a->getDomain(),
] ]
] ];
// Make request and suspend user // Make request and suspend user
$result = $this->_makeRequest('POST', 'edit/domain', $domainData); $result = $this->_makeRequest('POST', 'edit/domain', $domainData);
if (!str_contains($result, 'success')) { if (!str_contains($result, 'success')) {
@ -244,7 +244,7 @@ class Server_Manager_Mailcow extends Server_Manager
]; ];
// Delete domain on mailcow // Delete domain on mailcow
$result1 = $this->_makeRequest('POST', 'delete/domain', $domainData); $result1 = $this->_makeRequest('POST', 'delete/domain', $domainData);
if (str_contains($result1, 'success') { if (str_contains($result1, 'success')) {
// Delete Domain Admin in mailcow // Delete Domain Admin in mailcow
$domainAdminData = [ $domainAdminData = [
'body' => [ 'body' => [
@ -316,15 +316,15 @@ class Server_Manager_Mailcow extends Server_Manager
{ {
$domainAdminData = [ $domainAdminData = [
'json' => [ 'json' => [
"items" => [ "items" => [
"adm_" . str_replace(".", "", $a->getDomain()) "adm_" . str_replace(".", "", $a->getDomain())
], ],
"attr" => [ "attr" => [
"password" => $new, "password" => $new,
"password2" => $new "password2" => $new
] ],
] ],
];
// Make request and change password // Make request and change password
$result = $this->_makeRequest('POST', 'edit/domain-admin', $domainAdminData); $result = $this->_makeRequest('POST', 'edit/domain-admin', $domainAdminData);
if (! str_contains($result, 'success')) { if (! str_contains($result, 'success')) {