Browse Source

edit Account

andre 2 năm trước cách đây
mục cha
commit
817625dfdc

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

@@ -171,11 +171,40 @@ class EditAccountDataProvider extends BaseDataProvider
         logModuleCall(
         logModuleCall(
             'kerioEmail',
             'kerioEmail',
             __FUNCTION__,
             __FUNCTION__,
-            $this->data,
+            $this->actionElementId,
             'Debug Error',
             'Debug Error',
             $fields
             $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)
 /*        if(!$result)
         {
         {
             return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
             return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();