forked from leftypol/leftypol
auth.php: cleanup ununsed function
This commit is contained in:
parent
715005ec96
commit
4ef10e26fc
1 changed files with 2 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue