1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-17 11:28:41 +01:00

Merge pull request #826 from vichan-devel/RealAngeleno-patch-13

minor bugfix relating to auth when changing your own username
This commit is contained in:
Lorenzo Yario 2024-10-20 12:03:42 -07:00 committed by GitHub
commit c88acfc4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {