Преглед на файлове

try to get connectiontest running

andre преди 2 години
родител
ревизия
45601b0742
променени са 1 файла, в които са добавени 8 реда и са изтрити 9 реда
  1. 8 9
      api/class/KerioApi.php

+ 8 - 9
api/class/KerioApi.php

@@ -287,6 +287,14 @@ class KerioApi implements KerioApiInterface {
 	public function login($hostname, $username, $password) {
 	public function login($hostname, $username, $password) {
 		$this->clean();
 		$this->clean();
 
 
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$username,
+			'Debug Kerio Api 1',
+			$this->application
+		);
+
 		if (empty($hostname)) {
 		if (empty($hostname)) {
 			throw new KerioApiException('Cannot login. Hostname not set.');
 			throw new KerioApiException('Cannot login. Hostname not set.');
 		}
 		}
@@ -307,15 +315,6 @@ class KerioApi implements KerioApiInterface {
 		);
 		);
 
 
 		$response = $this->sendRequest($method, $params);
 		$response = $this->sendRequest($method, $params);
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$params,
-			'Debug Kerio Api 1',
-			$response
-		);
-
 		return $response;
 		return $response;
 	}
 	}