Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Dec 20, 2018

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.

@rullzer rullzer added bug 3. to review Waiting for reviews labels Dec 20, 2018
@rullzer rullzer added this to the Nextcloud 16 milestone Dec 20, 2018

$result = $this->connection->executeQuery($sql, array($appName, $key, $value));

$userIDs = array();
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 20, 2018
@ChristophWurst
Copy link
Member

@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]>
@rullzer rullzer force-pushed the fix/7084/case_insensitive_email_search branch from fb05ef3 to 03fe2b3 Compare December 20, 2018 13:19
@skjnldsv skjnldsv merged commit 4b0cb0d into master Dec 20, 2018
@skjnldsv skjnldsv deleted the fix/7084/case_insensitive_email_search branch December 20, 2018 15:12
@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

/backport to stable15

@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

/backport to stable14

@backportbot-nextcloud
Copy link

backport to stable15 in #13179

@backportbot-nextcloud
Copy link

backport to stable14 in #13180

@icewind1991
Copy link
Member

this will tank the query performance on large instances though

@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

Which is fine. It is a special case. We can optimize later but right now I do not see an other way

@icewind1991
Copy link
Member

how about querying case sensitive first and only falling back to the slower query if there are no results

@rullzer
Copy link
Member Author

rullzer commented Dec 20, 2018

Ah yes. Pr welcome ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants