mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
UCS lowercases email when storing
This commit is contained in:
parent
5f19cc95fc
commit
3b596f061e
@ -23,4 +23,18 @@ class addressbook_univention extends addressbook_ldap
|
||||
);
|
||||
parent::__construct($ldap_config, $ds);
|
||||
}
|
||||
|
||||
/**
|
||||
* saves the content of data to the db
|
||||
*
|
||||
* @param array $keys if given $keys are copied to data before saveing => allows a save as
|
||||
* @return int 0 on success and errno != 0 else
|
||||
*/
|
||||
function save($keys=null)
|
||||
{
|
||||
// UCS lowercases email when storing
|
||||
$keys['email'] = strtolower(!empty($keys['email']) ? $keys['email'] : $this->data['email']);
|
||||
|
||||
return parent::save($keys);
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +47,9 @@ class accounts_univention extends accounts_ldap
|
||||
*/
|
||||
function save(&$data)
|
||||
{
|
||||
// UCS lowercases email when storing
|
||||
$data['account_email'] = strtolower($data['account_email']);
|
||||
|
||||
if (self::available())
|
||||
{
|
||||
$config = $this->frontend->config && $this->frontend->config['ldap_context'] ?
|
||||
|
Loading…
Reference in New Issue
Block a user