mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-20 21:50:49 +01:00
ignore accounts with smtp_auth_session for login as in cron
This commit is contained in:
parent
eea811d46f
commit
db93440d8e
@ -1414,7 +1414,8 @@ class emailadmin_account implements ArrayAccess
|
|||||||
{
|
{
|
||||||
if (!$params['acc_smtp_host'] || !$params['acc_smtp_port']) continue;
|
if (!$params['acc_smtp_host'] || !$params['acc_smtp_port']) continue;
|
||||||
// check requirement of session, which is not available in async service!
|
// 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;
|
if ($params['acc_smtp_auth_session']) continue;
|
||||||
// may fail because of smtp only profile, or no session password, etc
|
// may fail because of smtp only profile, or no session password, etc
|
||||||
|
Loading…
Reference in New Issue
Block a user