Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Commit 1754c80

Browse files
committed
Merge pull request #15 from bilbo-the-hobbit/master
Adding the HTTP_AUTH_USER apache variable to work natively with lemon…
2 parents 92978e1 + 6d7118e commit 1754c80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Auth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ protected function getHttpAuthLogin()
7777
$httpLogin = false;
7878
if (isset($_SERVER['PHP_AUTH_USER'])) {
7979
$httpLogin = $_SERVER['PHP_AUTH_USER'];
80+
} elseif (isset($_SERVER['HTTP_AUTH_USER'])) {
81+
$httpLogin = $_SERVER['HTTP_AUTH_USER'];
8082
} elseif (isset($_ENV['AUTH_USER'])) {
8183
$httpLogin = $_ENV['AUTH_USER'];
8284
} elseif (isset($_ENV['REMOTE_USER'])) {

0 commit comments

Comments
 (0)