From 777df9e993f56aa973cdde0b1438c6330200c786 Mon Sep 17 00:00:00 2001 From: Leonid Tsarev Date: Mon, 21 Oct 2024 12:00:34 +0300 Subject: [PATCH] case insenstive email search --- public_html/appcode/user_funcs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/appcode/user_funcs.php b/public_html/appcode/user_funcs.php index fc29cfa..35b611f 100644 --- a/public_html/appcode/user_funcs.php +++ b/public_html/appcode/user_funcs.php @@ -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; }