From db93440d8e9a6ecc5267d97b6a9590764af342d5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 24 Apr 2015 10:48:31 +0000 Subject: [PATCH] ignore accounts with smtp_auth_session for login as in cron --- emailadmin/inc/class.emailadmin_account.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_account.inc.php b/emailadmin/inc/class.emailadmin_account.inc.php index fd206e8689..f5b633ce4d 100644 --- a/emailadmin/inc/class.emailadmin_account.inc.php +++ b/emailadmin/inc/class.emailadmin_account.inc.php @@ -1414,7 +1414,8 @@ class emailadmin_account implements ArrayAccess { if (!$params['acc_smtp_host'] || !$params['acc_smtp_port']) continue; // check requirement of session, which is not available in async service! - if (isset($GLOBALS['egw_info']['flags']['async-service'])) + if (isset($GLOBALS['egw_info']['flags']['async-service']) || + empty($GLOBALS['egw_info']['user']['account_id'])) // happens during login when notifying about blocked accounts { if ($params['acc_smtp_auth_session']) continue; // may fail because of smtp only profile, or no session password, etc