From 4ef10e26fc09909233e6a6e436722e536f7ec315 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Wed, 16 Apr 2025 14:46:11 -0300 Subject: [PATCH] auth.php: cleanup ununsed function --- inc/mod/auth.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/inc/mod/auth.php b/inc/mod/auth.php index e5bd6548..5e3b7c98 100644 --- a/inc/mod/auth.php +++ b/inc/mod/auth.php @@ -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']) ); } -} +} \ No newline at end of file