mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-03-01 16:20:36 +01:00
For 7.4 compatibility
This commit is contained in:
parent
6a22a51a72
commit
29ee5aeb1d
@ -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, $password = null, $salt = false) {
|
||||
global $config;
|
||||
|
||||
if (!$salt) {
|
||||
@ -79,7 +79,7 @@ function calc_cookie_name(bool $is_https, bool $is_path_jailed, string $base_nam
|
||||
}
|
||||
}
|
||||
|
||||
function login(string $username, string $password): array|false {
|
||||
function login(string $username, string $password) {
|
||||
global $mod, $config;
|
||||
|
||||
$query = prepare("SELECT `id`, `type`, `boards`, `password`, `version` FROM ``mods`` WHERE BINARY `username` = :username");
|
||||
|
Loading…
x
Reference in New Issue
Block a user