Skip to content

Commit 1a9fefa

Browse files
authored
Fix user lookup for getHost. (#135)
In this early login stage the username is only available in $user
1 parent f8a6a47 commit 1a9fefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ispconfig3_autoselect/ispconfig3_autoselect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private function getHost($user)
7373
$mail_user = $this->soap->mail_user_get($session_id, ['login' => $user]);
7474
// Alternatively also search the email field, this can differ from the login field for legacy reasons
7575
if (empty($mail_user)) {
76-
$mail_user = $this->soap->mail_user_get($session_id, ['email' => $this->rcmail->user->data['username']]);
76+
$mail_user = $this->soap->mail_user_get($session_id, ['email' => $user]);
7777
}
7878

7979
if (count($mail_user) == 1) {

0 commit comments

Comments
 (0)