Skip to content

Commit

Permalink
Fix for session fixation vulnerability
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed May 12, 2020
1 parent 7fb3a9b commit 0550fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/LoginController.php
Expand Up @@ -303,8 +303,8 @@ public function postTwoFactorAuth(Request $request)
*/
public function logout(Request $request)
{
$request->session()->forget('2fa_authed');

$request->session()->regenerate(true);
Auth::logout();

$settings = Setting::getSettings();
Expand Down

0 comments on commit 0550fe0

Please sign in to comment.