Skip to content

Commit

Permalink
MBS-7184: Make a accent insensitive query for the given email address
Browse files Browse the repository at this point in the history
  • Loading branch information
PM84 committed Jan 18, 2023
1 parent 1992e3d commit b518566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b518566

Please sign in to comment.