|
|
@@ -295,6 +295,7 @@ class KerioApi implements KerioApiInterface {
|
|
|
elseif (empty($this->application)) {
|
|
|
throw new KerioApiException('Cannot login. Application not defined.');
|
|
|
}
|
|
|
+ $this->setHostname($hostname);
|
|
|
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
@@ -304,8 +305,6 @@ class KerioApi implements KerioApiInterface {
|
|
|
$this->application
|
|
|
);
|
|
|
|
|
|
- $this->setHostname($hostname);
|
|
|
-
|
|
|
$method = 'Session.login';
|
|
|
$params = array(
|
|
|
'userName' => $username,
|