From 3c2353c0ece453eb12cd75bde90c43561652aa28 Mon Sep 17 00:00:00 2001 From: Dag Date: Wed, 31 Aug 2022 18:16:19 +0200 Subject: [PATCH] fix: bug in previous refactor (#2992) fix #2991 --- lib/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Configuration.php b/lib/Configuration.php index 739c4ff4..4b24452e 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -142,11 +142,11 @@ final class Configuration 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'); } - if (! self::getConfig('authentication', 'password')) { + if (!is_string(self::getConfig('authentication', 'password'))) { self::throwConfigError('authentication', 'password', 'Is not a valid string'); }