summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-09 14:15:46 +0300
committerAndrew Dolgov <[email protected]>2017-04-09 14:15:46 +0300
commit0eed023e7d20fff6c435d331f35b7f98b76f81e3 (patch)
tree7813bddd9c760f97b746e657159daf4aba96c62f /plugins
parent78fee22415bb1656700551a1cc8895cb714b5334 (diff)
auth_remote: check for PHP_AUTH_USER too
Diffstat (limited to 'plugins')
-rw-r--r--plugins/auth_remote/init.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php
index 2ec2c87b2..838178b26 100644
--- a/plugins/auth_remote/init.php
+++ b/plugins/auth_remote/init.php
@@ -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";