forked from GithubBackups/vichan
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:
commit
c88acfc4f0
@ -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…
x
Reference in New Issue
Block a user