예제 #1
0
 /**
  * Send the response after the user was authenticated.
  *
  * @param  \Orchestra\Contracts\Auth\Listener\AuthenticateUser  $listener
  * @param  array  $input
  * @param  \Orchestra\Contracts\Auth\Command\ThrottlesLogins|null  $throttles
  *
  * @return mixed
  */
 protected function handleUserWasAuthenticated(Listener $listener, array $input, ThrottlesCommand $throttles = null)
 {
     if ($throttles) {
         $throttles->clearLoginAttempts($input);
     }
     return $listener->userHasLoggedIn($this->verifyWhenFirstTimeLogin($this->getUser()));
 }