|
|
@@ -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(
|