andre пре 2 година
родитељ
комит
24981eae9d
1 измењених фајлова са 1 додато и 9 уклоњено
  1. 1 9
      app/UI/Client/EmailAccount/Pages/Accounts.php

+ 1 - 9
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -148,17 +148,9 @@ class Accounts extends DataTable implements ClientArea
          * load hosting
          */
         $hosting = Hosting::where('id', $this->getRequestValue('id'))->first();
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this->getWhmcsParamByKey('serverpassword'),
-            'Debug params',
-            $this->getWhmcsParamByKey('serverusername')
-        );
-
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
-            $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
+            $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));
             $domains = $api->getDomains(['id','name']);
         } catch (KerioApiException $error) {
             logModuleCall(