mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* AD/LDAP: periodic import calls addaccount hook for existing account when email was just set, to activate mail account
This commit is contained in:
parent
a60299e114
commit
c76ca96b5d
@ -373,8 +373,10 @@ class Import
|
||||
if (($GLOBALS['egw_info']['server']['account_repository'] ?? 'sql') === 'sql')
|
||||
{
|
||||
Api\Hooks::process($to_update + array(
|
||||
'location' => 'editaccount'
|
||||
), False, True); // called for every app now, not only enabled ones)
|
||||
// if there was no email set before, call add account hook, to activate mail-account
|
||||
'location' => empty($sql_account['account_email']) && !empty($to_update['account_email']) ?
|
||||
'addaccount' : 'editaccount',
|
||||
), False, True); // called for every app now, not only enabled ones)
|
||||
}
|
||||
$this->logger("Successful updated user '$account[account_lid]' (#$account_id): " .
|
||||
json_encode($diff, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'detail');
|
||||
|
Loading…
Reference in New Issue
Block a user