fixed case sensitivity

This commit is contained in:
Václav Šmejkal 2024-05-07 21:45:40 +02:00
parent 697543d3cb
commit 8976feebca
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -71,7 +71,7 @@ session_start();
login($safe_uname); login($safe_uname);
} else } 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) if ($res -> num_rows == 1)
{ {