server/lib/private/User
Daniel Calviño Sánchez 0b96a71a68 Fix configuration values matched in user searches
Due to a misplaced closing parenthesis the condition of the left join
clause was just "userid = uid"; the other conditions were passed as
additional parameters to "leftJoin", and thus they were ignored.
Therefore, the result set contained every preference of each user
instead of only the email, so the "WHERE configvalue LIKE XXX" matched
any configuration value of the user.

Besides the closing parenthesis this commit also fixes the literal
values. Although "Literal" objects represent literal values they must be
created through "IExpressionBuilder::literal()" to be properly quoted;
otherwise it is just a plain string, which is treated as a column name.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-03-14 23:31:42 +01:00
..
Backend.php Update license headers 2017-11-06 16:56:19 +01:00
Database.php Fix configuration values matched in user searches 2018-03-14 23:31:42 +01:00
LoginException.php Update with robin 2016-07-21 18:13:58 +02:00
Manager.php never translate login names when requiring with a user id 2018-01-03 13:25:00 +01:00
NoUserException.php Fix others 2016-07-21 18:13:57 +02:00
Session.php Remove unused import statements 2018-02-14 16:55:43 +01:00
User.php Remove unneeded semicolon and parentheses 2018-01-26 23:46:40 +01:00