Skip to content
Snippets Groups Projects
Commit 9a5af50f authored by Robin Appelman's avatar Robin Appelman
Browse files

Merge commit 'refs/merge-requests/59' of git://gitorious.org/owncloud/owncloud

parents c0b011e7 2cc5f5e1
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,14 @@ else {
$error = true;
}
}
// The user is already authenticated using Apaches AuthType Basic... very usable in combination with LDAP
elseif(isset($_SERVER["PHP_AUTH_USER"]) && isset($_SERVER["PHP_AUTH_PW"])){
if (OC_User::login($_SERVER["PHP_AUTH_USER"],$_SERVER["PHP_AUTH_PW"])) {
OC_User::unsetMagicInCookie();
OC_Util::redirectToDefaultPage();
}else{
$error = true;
}
}
OC_Template::printGuestPage('', 'login', array('error' => $error, 'redirect' => isset($_REQUEST['redirect_url'])?$_REQUEST['redirect_url']:'' ));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment