예제 #1
0
 /**
  * Send the response after the user has too many attempts.
  *
  * @param  \Orchestra\Contracts\Auth\Listener\AuthenticateUser  $listener
  * @param  array  $input
  * @param  \Orchestra\Contracts\Auth\Command\ThrottlesLogins|null  $throttles
  *
  * @return mixed
  */
 protected function handleUserHasTooManyAttempts(Listener $listener, array $input, ThrottlesCommand $throttles = null)
 {
     $throttles->incrementLoginAttempts($input);
     return $listener->sendLockoutResponse($input, $throttles->getSecondsBeforeNextAttempts($input));
 }