From 7cd9d4381a26cc3799a7e1209d26439f7779cf31 Mon Sep 17 00:00:00 2001 From: Nicola Beghin Date: Sat, 18 Mar 2017 14:44:44 +0100 Subject: [PATCH] typo --- lib/Cake/Controller/Component/Auth/BasicAuthenticate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php index df9dc3e57..29c6e8100 100755 --- a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php @@ -84,7 +84,7 @@ class BasicAuthenticate extends BaseAuthenticate { public function getUser(CakeRequest $request) { $username = ''; $pass = ''; - if (!isset($_SERVER['PHP_AUTH_USER'])) { + if (isset($_SERVER['PHP_AUTH_USER'])) { $username = env('PHP_AUTH_USER'); $pass = env('PHP_AUTH_PW'); } else {