Skip to content

Commit

Permalink
regenerate token on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 30, 2019
1 parent 9308a4e commit b2af428
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Foundation/Auth/AuthenticatesUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ public function logout(Request $request)

$request->session()->invalidate();

$request->session()->regenerateToken();

return $this->loggedOut($request) ?: redirect('/');
}

Expand Down

0 comments on commit b2af428

Please sign in to comment.