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) {