* Api: fixed not working HTTP authentication

This commit is contained in:
Ralf Becker 2016-07-26 17:07:16 +02:00
parent 09e6d56bf5
commit 28cddb8e64

View File

@ -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;
}