Ver Fonte

edit Account

andre há 2 anos atrás
pai
commit
b8b1ef2481

+ 0 - 17
api/KerioWhmcs.php

@@ -164,23 +164,6 @@ class KerioWhmcs extends KerioConnectApi {
 		return $result;
 	}
 
-	/**
-	 * Get contact of a user
-	 *
-	 * @param	string	Contact Id
-	 *
-	 * @return	array	contact of user
-	 */
-	public function getContact($id) {
-		$method = 'CompanyContacts.getAvailable';
-
-		$params = array(
-			'domainId' => $id,
-			);
-		$result = $this->sendRequest($method, $params);
-		return $result;
-	}
-
 	/**
 	 * Get login name by user's Id
 	 * 

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

@@ -112,30 +112,16 @@ class EditAccountDataProvider extends BaseDataProvider
             );
             return ['error' => $error->getMessage()];
         }
-        try {
-            $contact = $api->getContact($domainID);
-        } catch (KerioApiException $error) {
-            logModuleCall(
-                'kerioEmail',
-                __FUNCTION__,
-                $error,
-                'Debug Error',
-                $error->getMessage()
-            );
-            return ['error' => $error->getMessage()];
-        }
         $api->logout();
 
-
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
             $account,
             'Debug Error',
-            $contact
+            $address
         );
 
-
         $this->data['id']           = $account['id'];
         $this->data['username']     = $account['loginName'];
         $this->data['domain']       = $this->getWhmcsParamByKey('customfields')['maildomain'];