mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 22:53:12 -06:00
Remove logout method (is the same)
This commit is contained in:
parent
5cfb1b63dc
commit
fbd7c9ae07
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user