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; }