mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
make users mailaddress available for use in applications, if it is found in ldap
This commit is contained in:
parent
2d9373d120
commit
3c919bba50
@ -77,6 +77,10 @@
|
|||||||
$this->data['account_lid'] = $allValues[0]['uid'][0];
|
$this->data['account_lid'] = $allValues[0]['uid'][0];
|
||||||
$this->data['firstname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['givenname'][0],'utf-8');
|
$this->data['firstname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['givenname'][0],'utf-8');
|
||||||
$this->data['lastname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['sn'][0],'utf-8');
|
$this->data['lastname'] = $GLOBALS['phpgw']->translation->convert($allValues[0]['sn'][0],'utf-8');
|
||||||
|
if(isset($allValues[0]['email'][0]))
|
||||||
|
{
|
||||||
|
$this->data['mailaddress'] = $allValues[0]['email'][0]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->data['account_dn'] = $allValues[0]['dn'];
|
$this->data['account_dn'] = $allValues[0]['dn'];
|
||||||
$this->data['fullname'] = $allValues[0]['cn'][0];
|
$this->data['fullname'] = $allValues[0]['cn'][0];
|
||||||
@ -1033,7 +1037,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->db->transaction_commit();
|
$this->db->transaction_commit();
|
||||||
|
|
||||||
$GLOBALS['hook_values']['account_lid'] = $acct_info['account_lid'];
|
$GLOBALS['hook_values']['account_lid'] = $acct_info['account_lid'];
|
||||||
$GLOBALS['hook_values']['account_id'] = $accountid;
|
$GLOBALS['hook_values']['account_id'] = $accountid;
|
||||||
$GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd'];
|
$GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd'];
|
||||||
@ -1043,7 +1047,7 @@
|
|||||||
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
|
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
|
||||||
'location' => 'addaccount'
|
'location' => 'addaccount'
|
||||||
),False,True); // called for every app now, not only enabled ones
|
),False,True); // called for every app now, not only enabled ones
|
||||||
|
|
||||||
return $accountid;
|
return $accountid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user