From ef86658b6bd86af891588d237ad13448a955016d Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Thu, 28 Nov 2024 13:23:27 +1100 Subject: [PATCH] $_SERVER['PHP_AUTH_PW'] isn't always sent --- scripts/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/common.php b/scripts/common.php index 5ce1c6a..26f92c5 100644 --- a/scripts/common.php +++ b/scripts/common.php @@ -66,7 +66,7 @@ function get_service_mount_name() { function is_authenticated() { $ret = false; - if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { + if (isset($_SERVER['PHP_AUTH_USER'])) { $config = get_config(); $ret = ($_SERVER['PHP_AUTH_PW'] == $config['CADDY_PWD'] && $_SERVER['PHP_AUTH_USER'] == 'birdnet'); }