fix: Fixed broken http-auth auth module #5053 (#5146)

This commit is contained in:
Neil Lathwood
2016-12-12 14:25:30 +00:00
committed by GitHub
parent e56d26327a
commit d3c6d82b21

View File

@@ -42,6 +42,8 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
} elseif (isset($_GET['username']) && isset($_GET['password'])) {
$_SESSION['username'] = clean($_GET['username']);
$_SESSION['password'] = $_GET['password'];
} elseif (isset($_SERVER['REMOTE_USER'])) {
$_SESSION['username'] = $_SERVER['REMOTE_USER'];
}
if (!isset($config['auth_mechanism'])) {