* Api: fixed not working HTTP authentication

This commit is contained in:
Ralf Becker 2016-07-26 17:07:16 +02:00
parent 5d52042640
commit 5b8fd1fa92

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