mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Updated BasicAuth to use new authenticator system.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46085 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6b4623973d
commit
6bdd810817
@ -13,7 +13,11 @@ class BasicAuth extends Object {
|
|||||||
|
|
||||||
|
|
||||||
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
||||||
$member = Security::authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']);
|
$member = MemberAuthenticator::authenticate(array(
|
||||||
|
'Email' => $_SERVER['PHP_AUTH_USER'],
|
||||||
|
'Password' => $_SERVER['PHP_AUTH_PW'],
|
||||||
|
), $this);
|
||||||
|
|
||||||
if($member) {
|
if($member) {
|
||||||
$authenticated = true;
|
$authenticated = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user