This commit is contained in:
Nicola Beghin 2017-03-18 14:44:44 +01:00
parent ca6ca9376e
commit 7cd9d4381a

View file

@ -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 {