1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-15 03:17:38 +01:00

Merge pull request #741 from Zankaria/fix-login

Fix the login
This commit is contained in:
Lorenzo Yario 2024-05-10 15:41:02 -07:00 committed by GitHub
commit e5dc2cd5ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ use Vichan\Functions\Net;
defined('TINYBOARD') or exit; defined('TINYBOARD') or exit;
// create a hash/salt pair for validate logins // create a hash/salt pair for validate logins
function mkhash(string $username, string $password, bool $salt = false): array|string { function mkhash(string $username, string $password, mixed $salt = false): array|string {
global $config; global $config;
if (!$salt) { if (!$salt) {