forked from extern/egroupware
* Api: fixed not working HTTP authentication
This commit is contained in:
parent
5d52042640
commit
5b8fd1fa92
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user