From b518566aeb9bb6470bb523772181313ca2ba3c17 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 18 Jan 2023 10:53:13 +0100 Subject: [PATCH] MBS-7184: Make a accent insensitive query for the given email address --- classes/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/auth.php b/classes/auth.php index a74b398e7..20884d007 100644 --- a/classes/auth.php +++ b/classes/auth.php @@ -1069,7 +1069,7 @@ public function is_email_taken($email, $excludeusername = null) { if (!empty($email)) { // Make a case-insensitive query for the given email address. - $select = $DB->sql_equal('email', ':email', false) . ' AND mnethostid = :mnethostid AND deleted = :deleted'; + $select = $DB->sql_equal('email', ':email', false, false) . ' AND mnethostid = :mnethostid AND deleted = :deleted'; $params = array( 'email' => $email, 'mnethostid' => $CFG->mnet_localhost_id,