Various code cleanup.

This commit is contained in:
James Cole
2016-11-26 09:16:06 +01:00
parent 62e41f1997
commit e8dfbff73f
8 changed files with 33 additions and 21 deletions

View File

@@ -75,7 +75,8 @@ class LoginController extends Controller
// 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)) {
$lockedOut = $this->hasTooManyLoginAttempts($request);
if ($lockedOut) {
$this->fireLockoutEvent($request);
return $this->sendLockoutResponse($request);