Skip to content
Permalink
Browse files

regenerate the token on session regeneration

  • Loading branch information...
taylorotwell committed Mar 6, 2018
1 parent ed0a327 commit 20e84191d5ef21eb5c015908c11eabf8e81d6212
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Illuminate/Session/Store.php
@@ -475,7 +475,9 @@ public function invalidate()
*/
public function regenerate($destroy = false)
{
return $this->migrate($destroy);
return tap($this->migrate($destroy), function () {
$this->regenerateToken();
});
}
/**

0 comments on commit 20e8419

Please sign in to comment.
You can’t perform that action at this time.