diff options
| author | wn_ <invalid@email.com> | 2024-11-23 17:43:24 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-23 17:43:24 +0000 |
| commit | abcd0e8ba205aac8bd9006e99d783afc999af0af (patch) | |
| tree | 8635fcd5b239f18db5ff831c7ef21a290a8ac6d8 /plugins | |
| parent | d4636716fb6e1879098823c2f037db5d8d3f24a0 (diff) | |
Use native union types in most places.
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/auth_internal/init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/auth_internal/init.php b/plugins/auth_internal/init.php index 6dd79373d..4f2988262 100644 --- a/plugins/auth_internal/init.php +++ b/plugins/auth_internal/init.php @@ -165,7 +165,7 @@ class Auth_Internal extends Auth_Base implements IAuthModule2 { * @throws PDOException * @throws Exception */ - function check_password(int $owner_uid, string $password, string $service = '') { + function check_password(int $owner_uid, string $password, string $service = ''): false|int { $user = ORM::for_table('ttrss_users')->find_one($owner_uid); @@ -252,7 +252,7 @@ class Auth_Internal extends Auth_Base implements IAuthModule2 { * @throws PDOException * @throws Exception */ - private function check_app_password(string $login, string $password, string $service) { + private function check_app_password(string $login, string $password, string $service): false|int { $sth = $this->pdo->prepare("SELECT p.id, p.pwd_hash, u.id AS uid FROM ttrss_app_passwords p, ttrss_users u WHERE p.owner_uid = u.id AND LOWER(u.login) = LOWER(?) AND service = ?"); |