From 43e8864eada6a192732919ab1a96f8e0a672f6af Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 24 Nov 2024 12:55:59 +0300 Subject: allow nullable password in auto_create_user for backwards compatibility --- classes/Auth_Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Auth_Base.php b/classes/Auth_Base.php index 35ff6be49..4ea4dbd8a 100644 --- a/classes/Auth_Base.php +++ b/classes/Auth_Base.php @@ -15,11 +15,11 @@ abstract class Auth_Base extends Plugin implements IAuthModule { /** Auto-creates specified user if allowed by system configuration. * Can be used instead of find_user_by_login() by external auth modules * @param string $login - * @param string|false $password + * @param null|string|false $password * @throws Exception * @throws PDOException */ - function auto_create_user(string $login, false|string $password = false): ?int { + function auto_create_user(string $login, null|false|string $password = false): ?int { if ($login && Config::get(Config::AUTH_AUTO_CREATE)) { $user_id = UserHelper::find_user_by_login($login); -- cgit v1.2.3-54-g00ecf