mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
minor bugfix relating to auth when changing your own username
This commit is contained in:
parent
c1307feeb5
commit
58f7302936
@ -10,7 +10,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, mixed $salt = false): array|string {
|
function mkhash(string $username, ?string $password, mixed $salt = false): array|string {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if (!$salt) {
|
if (!$salt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user