auth.php: cleanup ununsed function

This commit is contained in:
fowr 2025-04-16 14:46:11 -03:00 committed by Zankaria
parent 715005ec96
commit 4ef10e26fc

View file

@ -68,11 +68,7 @@ function test_password(string $db_hash, string|int $version, string $input_passw
return $ok;
}
function generate_salt() {
return strtr(base64_encode(random_bytes(16)), '+', '.');
}
function login($username, $password) {
function login(string $username, string $password): array|false {
global $mod, $config;
$query = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
@ -215,4 +211,4 @@ function check_login(Context $ctx, $prompt = false) {
'boards' => explode(',', $user['boards'])
);
}
}
}