MDL-29317 gradeimport_csv: Case-insensitive query for email and username
commitb9ceefadf035b669d8541fac1769670f13e9e658
authorJun Pataleta <jun@moodle.com>
Thu, 28 Feb 2019 08:34:08 +0000 (28 16:34 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 29 Mar 2019 05:30:06 +0000 (29 13:30 +0800)
tree29aee5a6dc6309cd2f6c7293ab73dc67f5b21670
parent2ff2274ffce932be0064b7af5142088cbc68f5e8
MDL-29317 gradeimport_csv: Case-insensitive query for email and username

Query using the following fields for
\gradeimport_csv_load_data::check_user_exists() should be done in a
case-insensitive manner:
* email - As agreed in MDL-29315
* username - Although usernames can only be in lowercase during
  registration, usernames are being handled in a case-insensitive
  fashion when logging in. It makes sense to make check_user_exists()
  consistent with this behaviour.
grade/import/csv/classes/load_data.php