ignore accounts with smtp_auth_session for login as in cron

This commit is contained in:
Ralf Becker 2015-04-24 10:48:31 +00:00
parent eea811d46f
commit db93440d8e

View File

@ -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