mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 15:30:25 +01:00
* 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')
|
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;
|
return isset($_SERVER['PHP_AUTH_USER']) && $_SERVER['PHP_AUTH_USER'] === $username;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user