andre hace 2 años
padre
commit
817625dfdc
Se han modificado 1 ficheros con 30 adiciones y 1 borrados
  1. 30 1
      app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

+ 30 - 1
app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

@@ -171,11 +171,40 @@ class EditAccountDataProvider extends BaseDataProvider
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
-            $this->data,
+            $this->actionElementId,
             'Debug Error',
             $fields
         );
 
+/*        try {
+            $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));
+        } catch (KerioApiException $error) {
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $error,
+                'Debug Error',
+                $error->getMessage()
+            );
+            return ['error' => $error->getMessage()];
+        }
+        try {
+            $result = $api->setAddress($this->actionElementId, $fields);
+        } catch (KerioApiException $error) {
+            logModuleCall(
+                'kerioEmail',
+                __FUNCTION__,
+                $error,
+                'Debug Error',
+                $error->getMessage()
+            );
+            return ['error' => $error->getMessage()];
+        } */
+
+
+        // todo update status
+
+
 /*        if(!$result)
         {
             return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();