Regenerate session ID on logout

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2020-05-12 10:38:00 -07:00
parent 730632e2eb
commit 274f82893f
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -382,8 +382,8 @@ class LoginController extends Controller
if (!empty($sloRequestUrl)) {
return redirect()->away($sloRequestUrl);
}
$request->session()->forget('2fa_authed');
$request->session()->regenerate(true);
Auth::logout();