Skip to content

Keeps members signed in after changing their login name - #9916

Open
boredskull wants to merge 1 commit into
SimpleMachines:release-3.0from
boredskull:fix/9224-profile-login-cookie
Open

boredskull wants to merge 1 commit into
SimpleMachines:release-3.0from
boredskull:fix/9224-profile-login-cookie

Conversation

@boredskull

Copy link
Copy Markdown

Description

Changing your own login name can generate a new password while leaving the browser's login cookie tied to the previous password hash. The next request rejects that cookie and signs you out.

Refresh the current login cookie when the profile save changes the stored password hash. Keep the in-memory profile data in sync so subsequent field saves retain the updated credentials. The existing password reset email still sends.

Adds an HTTP regression test that changes a temporary administrator's login name and checks that they stay signed in on a fresh request. A focused PHP check reproduced the stale cookie before the patch and passed after it. The HTTP test still needs to run against an installed forum.

Issues References (Fixes|Related|Closes)

  1. Related: [3.0]: Changing login name #9224

Signed-off-by: boredskull <358422552+boredskull@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant