From 6bdd810817ea95a9b5cd7ef8b4c92524b5fe3962 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 2 Dec 2007 20:36:25 +0000 Subject: [PATCH] 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 --- security/BasicAuth.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/security/BasicAuth.php b/security/BasicAuth.php index b80b7c2b9..91684b7b1 100755 --- a/security/BasicAuth.php +++ b/security/BasicAuth.php @@ -13,7 +13,11 @@ class BasicAuth extends Object { 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) { $authenticated = true; }