-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use a case insensitive search for email #13171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| $result = $this->connection->executeQuery($sql, array($appName, $key, $value)); | ||
|
|
||
| $userIDs = array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array_map to the rescue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I just copy pasted
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
@rullzer merge |
Fixes #7084 Now entering wrongly cased email (roeland@ instead of Roeland@) for password reset etc. Will also work. Signed-off-by: Roeland Jago Douma <[email protected]>
fb05ef3 to
03fe2b3
Compare
|
/backport to stable15 |
|
/backport to stable14 |
|
backport to stable15 in #13179 |
|
backport to stable14 in #13180 |
|
this will tank the query performance on large instances though |
|
Which is fine. It is a special case. We can optimize later but right now I do not see an other way |
|
how about querying case sensitive first and only falling back to the slower query if there are no results |
|
Ah yes. Pr welcome ;-) |
Fixes #7084
Now entering wrongly cased email (roeland@ instead of Roeland@) for
password reset etc. Will also work.
Propably good to backport at least to 15, even 14 maybe.