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;
|
return $ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
function generate_salt() {
|
function login(string $username, string $password): array|false {
|
||||||
return strtr(base64_encode(random_bytes(16)), '+', '.');
|
|
||||||
}
|
|
||||||
|
|
||||||
function login($username, $password) {
|
|
||||||
global $mod, $config;
|
global $mod, $config;
|
||||||
|
|
||||||
$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");
|
||||||
|
|
@ -215,4 +211,4 @@ function check_login(Context $ctx, $prompt = false) {
|
||||||
'boards' => explode(',', $user['boards'])
|
'boards' => explode(',', $user['boards'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue