- call user2email also for login with @ (#1486147)

This commit is contained in:
alecpl
2009-09-26 18:05:35 +00:00
parent 614024c239
commit 984e9727a0

View File

@@ -360,9 +360,8 @@ class rcube_user
$rcmail = rcmail::get_instance();
// try to resolve user in virtuser table and file
if (!strpos($user, '@')) {
if ($email_list = self::user2email($user, false, true))
$user_email = is_array($email_list[0]) ? $email_list[0][0] : $email_list[0];
if ($email_list = self::user2email($user, false, true)) {
$user_email = is_array($email_list[0]) ? $email_list[0][0] : $email_list[0];
}
$data = $rcmail->plugins->exec_hook('create_user',