fix: bug in previous refactor (#2992)

fix #2991
This commit is contained in:
Dag 2022-08-31 18:16:19 +02:00 committed by GitHub
parent 97808abca1
commit 3c2353c0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -142,11 +142,11 @@ final class Configuration
self::throwConfigError('authentication', 'enable', 'Is not a valid Boolean'); self::throwConfigError('authentication', 'enable', 'Is not a valid Boolean');
} }
if (!self::getConfig('authentication', 'username')) { if (!is_string(self::getConfig('authentication', 'username'))) {
self::throwConfigError('authentication', 'username', 'Is not a valid string'); self::throwConfigError('authentication', 'username', 'Is not a valid string');
} }
if (! self::getConfig('authentication', 'password')) { if (!is_string(self::getConfig('authentication', 'password'))) {
self::throwConfigError('authentication', 'password', 'Is not a valid string'); self::throwConfigError('authentication', 'password', 'Is not a valid string');
} }