auth_remote: check for PHP_AUTH_USER too

This commit is contained in:
Andrew Dolgov 2017-04-09 14:15:46 +03:00
parent 78fee22415
commit 0eed023e7d
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class Auth_Remote extends Plugin implements IAuthModule {
// php-cgi
if (!$try_login) $try_login = db_escape_string($_SERVER["REDIRECT_REMOTE_USER"]);
if (!$try_login) $try_login = db_escape_string($_SERVER["PHP_AUTH_USER"]);
if (!$try_login) $try_login = $this->get_login_by_ssl_certificate();
# if (!$try_login) $try_login = "test_qqq";