mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
* PostgreSQL: fix SQL error on login with auto-create accounts enabled and user-name already exists with different case
This commit is contained in:
parent
765d28ea21
commit
75baf8857f
@ -595,6 +595,12 @@ class accounts_sql
|
|||||||
$table = $this->table;
|
$table = $this->table;
|
||||||
$cols .= ',account_type';
|
$cols .= ',account_type';
|
||||||
$where[$which] = $name;
|
$where[$which] = $name;
|
||||||
|
// check if we need to treat username case-insensitive
|
||||||
|
if ($which == 'account_lid' && !$GLOBALS['egw_info']['server']['case_sensitive_username']) // = is case sensitiv eg. on postgres, but not on mysql!
|
||||||
|
{
|
||||||
|
$where[] = 'account_lid '.$this->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE].' '.$this->db->quote($where['account_lid']);
|
||||||
|
unset($where['account_lid']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($account_type)
|
if ($account_type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user