From 2b9f63a0671ac2ed036cee6b4ac7af9ffc63d6d3 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Wed, 28 May 2025 16:10:43 +0200 Subject: [PATCH] Fix user lookup for getHost. In this early login stage the username is only available in $user --- ispconfig3_autoselect/ispconfig3_autoselect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ispconfig3_autoselect/ispconfig3_autoselect.php b/ispconfig3_autoselect/ispconfig3_autoselect.php index a382e96..d1f9186 100644 --- a/ispconfig3_autoselect/ispconfig3_autoselect.php +++ b/ispconfig3_autoselect/ispconfig3_autoselect.php @@ -73,7 +73,7 @@ private function getHost($user) $mail_user = $this->soap->mail_user_get($session_id, ['login' => $user]); // Alternatively also search the email field, this can differ from the login field for legacy reasons if (empty($mail_user)) { - $mail_user = $this->soap->mail_user_get($session_id, ['email' => $this->rcmail->user->data['username']]); + $mail_user = $this->soap->mail_user_get($session_id, ['email' => $user]); } if (count($mail_user) == 1) {