From aff20c8e15838643e3236c4ad3415b00957f48cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20=C3=98yvind=20Laderud?= Date: Tue, 4 Jun 2019 16:06:24 +0200 Subject: [PATCH] return null instead of false from Auth0UserProvider. Illuminate\Auth\GuardHelpers check/guest function checks if user `is_null`. To determine if there is a logged in user. --- src/Auth0/Login/Auth0UserProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Auth0/Login/Auth0UserProvider.php b/src/Auth0/Login/Auth0UserProvider.php index 9d3e6bb9..f7151add 100644 --- a/src/Auth0/Login/Auth0UserProvider.php +++ b/src/Auth0/Login/Auth0UserProvider.php @@ -50,7 +50,7 @@ public function retrieveByID($identifier) public function retrieveByCredentials(array $credentials) { if (!isset($credentials['api_token'])) { - return false; + return null; } $encUser = $credentials['api_token']; @@ -71,7 +71,7 @@ public function retrieveByCredentials(array $credentials) */ public function retrieveByToken($identifier, $token) { - return false; + return null; } /** @@ -86,6 +86,6 @@ public function updateRememberToken(Authenticatable $user, $token) */ public function validateCredentials(Authenticatable $user, array $credentials) { - return false; + return null; } }