From 68bb7802e59096de4161b4addf5c48e2e7d2aaae Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Thu, 12 Nov 2020 09:26:46 -0500 Subject: [PATCH] Ensure variable exists and always make sure to triple check all PR's :sweat_smile: #897 --- src/Auth/DatabaseUserProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Auth/DatabaseUserProvider.php b/src/Auth/DatabaseUserProvider.php index 1a908f9..95f0683 100644 --- a/src/Auth/DatabaseUserProvider.php +++ b/src/Auth/DatabaseUserProvider.php @@ -91,10 +91,12 @@ public function updateRememberToken(Authenticatable $user, $token) */ public function retrieveByCredentials(array $credentials) { + $user = null; + try { $user = Resolver::byCredentials($credentials); } catch (BindException $e) { - if (!$this->isFallingBack()) { + if (! $this->isFallingBack()) { throw $e; } }