From 28cddb8e64dc87f1f87c6b2e9a89cd6fcf67aec9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Jul 2016 17:07:16 +0200 Subject: [PATCH] * Api: fixed not working HTTP authentication --- api/src/Auth/Http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Auth/Http.php b/api/src/Auth/Http.php index de1edc5f84..f8f51028b0 100644 --- a/api/src/Auth/Http.php +++ b/api/src/Auth/Http.php @@ -31,7 +31,7 @@ class Http implements Backend */ function authenticate($username, $passwd, $passwd_type='text') { - unset($username, $passwd, $passwd_type); // not used, but required by interface + unset($passwd, $passwd_type); // not used, but required by interface return isset($_SERVER['PHP_AUTH_USER']) && $_SERVER['PHP_AUTH_USER'] === $username; }