A live bird collage card for your Home Assistant dashboard.
$_SERVER['PHP_AUTH_PW'] isn't always sent
Ash McKenzieef86658b6bd8
diff --git a/scripts/common.php b/scripts/common.phpindex 5ce1c6ae..26f92c54 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');}