Beispiel #1
0
 /**
  * Send the post-authentication response.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @return \Illuminate\Http\Response
  */
 protected function authenticated(Request $request, Authenticatable $user)
 {
     if (Spark::supportsTwoFactorAuth() && Spark::twoFactorProvider()->isEnabled($user)) {
         return $this->logoutAndRedirectToTokenScreen($request, $user);
     }
     return redirect()->intended($this->redirectPath());
 }