From 58f730293650e1a2282a08010c100ae55d601e57 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Sun, 20 Oct 2024 12:03:15 -0700 Subject: [PATCH] minor bugfix relating to auth when changing your own username --- inc/mod/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/auth.php b/inc/mod/auth.php index 70cf23ff..f6a65db2 100644 --- a/inc/mod/auth.php +++ b/inc/mod/auth.php @@ -10,7 +10,7 @@ use Vichan\Functions\Net; defined('TINYBOARD') or exit; // create a hash/salt pair for validate logins -function mkhash(string $username, string $password, mixed $salt = false): array|string { +function mkhash(string $username, ?string $password, mixed $salt = false): array|string { global $config; if (!$salt) {