forked from leftypol/leftypol
auth.php: remove unused global
This commit is contained in:
parent
4ef10e26fc
commit
2f69af8267
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ function test_password(string $db_hash, string|int $version, string $input_passw
|
||||||
}
|
}
|
||||||
|
|
||||||
function login(string $username, string $password): array|false {
|
function login(string $username, string $password): array|false {
|
||||||
global $mod, $config;
|
global $mod;
|
||||||
|
|
||||||
$query = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
|
$query = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
|
||||||
$query->bindValue(':username', $username);
|
$query->bindValue(':username', $username);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue