Remove logout method (is the same)

This commit is contained in:
James Cole 2019-08-17 06:23:12 +02:00
parent 5cfb1b63dc
commit fbd7c9ae07
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -115,24 +115,6 @@ class LoginController extends Controller
return $this->sendFailedLoginResponse($request);
}
/**
* Log the user out of the application.
*
* @param Request $request
* @param CookieJar $cookieJar
*
* @return $this|\Illuminate\Http\RedirectResponse
*/
public function logout(Request $request, CookieJar $cookieJar)
{
$this->guard()->logout();
$request->session()->invalidate();
$cookie = $cookieJar->forget('twoFactorAuthenticated');
return redirect('/')->withCookie($cookie);
}
/**
* Show the application's login form.
*