diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-11-24 12:55:59 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-11-24 12:55:59 +0300 |
| commit | 43e8864eada6a192732919ab1a96f8e0a672f6af (patch) | |
| tree | b3a29d1f0ecf2b750cb1235aaff42625c3638ff3 | |
| parent | b089d67e26b9847d14a8e839df051ec035c980de (diff) | |
allow nullable password in auto_create_user for backwards compatibility
| -rw-r--r-- | classes/Auth_Base.php | 4 |
1 files 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); |