From 8976feebcafdcb92fe623562ce7dd3bf9bdb6948 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 7 May 2024 21:45:40 +0200 Subject: [PATCH] fixed case sensitivity --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e2d3ff5..713bc39 100644 --- a/index.php +++ b/index.php @@ -71,7 +71,7 @@ session_start(); login($safe_uname); } else { - $res = $database -> query("SELECT username, password FROM user WHERE username=\"" . $safe_uname . "\" AND password = \"" . $hashed_pass . "\""); + $res = $database -> query("SELECT username, password FROM user WHERE BINARY username=\"" . $safe_uname . "\" AND BINARY password = \"" . $hashed_pass . "\""); if ($res -> num_rows == 1) {