Skip to content

Commit

Permalink
case insenstive email search
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Oct 21, 2024
1 parent 0ca7fa0 commit 777df9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/appcode/user_funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function get_user_id_from_name ($username, $lastvisit = TRUE)
function get_user_by_email($email)
{
$sql = connect();
$users = $sql -> GetAll('users', '*', "\"email\" = '$email'");
$users = $sql -> GetAll('users', '*', "\"email\" ILIKE '$email'");
return ($users != FALSE) ? $users[0] : NULL;
}

Expand Down

0 comments on commit 777df9e

Please sign in to comment.