mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 19:01:58 +00:00
Remove logout method (is the same)
This commit is contained in:
@@ -115,24 +115,6 @@ class LoginController extends Controller
|
|||||||
return $this->sendFailedLoginResponse($request);
|
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.
|
* Show the application's login form.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user