Jelajahi Sumber

edit Account

andre 2 tahun lalu
induk
melakukan
dee8af80d5

+ 0 - 9
app/UI/Client/EmailAccount/Providers/AccountDataProvider.php

@@ -140,15 +140,6 @@ class AccountDataProvider extends BaseDataProvider
             );
             return ['error' => $error->getMessage()];
         }
-                    
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $result1,
-            'Debug Add Account',
-            $result2
-        );
-
 
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAccountHasBeenAdded')->setStatusSuccess();
 

+ 8 - 0
app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

@@ -186,6 +186,14 @@ class EditAccountDataProvider extends BaseDataProvider
         $fields['departmentName'] = $this->formData['department'];
         $fields['profession'] = $this->formData['profession'];
 
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $account,
+            'Debug Error',
+            $fields
+        );
+
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
             $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));