From f75bd30702d9a40eb430b3420c7b4eab06e69c38 Mon Sep 17 00:00:00 2001 From: Elon Than Date: Mon, 19 Sep 2016 20:09:33 +0200 Subject: [PATCH] Removed unnecessary variable --- src/Illuminate/Foundation/Auth/AuthenticatesUsers.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php b/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php index c4bb46974ebe..e63a0d45ee94 100644 --- a/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php +++ b/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php @@ -33,7 +33,7 @@ public function login(Request $request) // If the class is using the ThrottlesLogins trait, we can automatically throttle // the login attempts for this application. We'll key this by the username and // the IP address of the client making these requests into this application. - if ($lockedOut = $this->hasTooManyLoginAttempts($request)) { + if ($this->hasTooManyLoginAttempts($request)) { $this->fireLockoutEvent($request); return $this->sendLockoutResponse($request); @@ -48,9 +48,7 @@ public function login(Request $request) // If the login attempt was unsuccessful we will increment the number of attempts // to login and redirect the user back to the login form. Of course, when this // user surpasses their maximum number of attempts they will get locked out. - if (! $lockedOut) { - $this->incrementLoginAttempts($request); - } + $this->incrementLoginAttempts($request); return $this->sendFailedLoginResponse($request); }