Skip to content

session regenerate after successfull login: - #299

Merged
techmahedy merged 1 commit into
doppar:4.xfrom
techmahedy:techmahedy-4.x
Sep 8, 2026
Merged

techmahedy merged 1 commit into
doppar:4.xfrom
techmahedy:techmahedy-4.x

Conversation

@techmahedy

Copy link
Copy Markdown
Member
  1. Change: Authenticate::setUser() (Auth/Security/Authenticate.php) now calls session()->regenerate() before writing the session key. Since setUser() is the single choke point for all three login-completion paths — direct login, 2FA completion, and remember-cookie silent resume — this one change closes session fixation across the board.

  2. Tests: extended tests/Auth/AuthenticateTest.php's TestSessionStore mock with a regenerate() method and call counter, added two regression tests confirming regeneration fires on both login() and completeTwoFactorLogin(). Full suite: 3429 tests passing.

@techmahedy techmahedy added the enhancement New feature or request label Sep 8, 2026
@techmahedy
techmahedy merged commit 1fcdce7 into doppar:4.x Sep 8, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant