Possible fix for logout session not being flushed

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-05 13:06:58 -07:00
parent cab29745e7
commit 5fbafb8a6a

View file

@ -415,10 +415,8 @@ class LoginController extends Controller
return redirect()->away($sloRequestUrl);
}
$request->session()->regenerate(true);
$request->session()->regenerate(true);
Auth::logout();
$request->session()->flush();
if (!empty($sloRedirectUrl)) {
return redirect()->away($sloRedirectUrl);