Skip to content

MBS-14110: Don't try to log in using outdated username #3600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reosarevok
Copy link
Member

Fix MBS-14110

Problem

When we rename a user, their remember_login cookie still points to their old, no longer existing username. That means we were trying to log a non-existing user if their session had expired, causing an ISE.

Solution

This makes sure the user we're trying to log in actually exists. Renamed users with expired sessions will still have to log in again, but at least they won't get an ISE before that; logging in again is not a big issue anyway since that's the first thing I would tell them to do to propagate the change to LB anyway.

Testing

Manually, by logging in with a random use with "remember me" checked in my local server, deleting the user's session cookie by hand, then renaming the user in incognito and reloading the page the user was on.

When we rename a user, their remember_login cookie still points
to their old, no longer existing username. That means we were
trying to log a non-existing user if their session had expired,
causing an ISE.

This makes sure the user we're trying to log in actually exists.
Renamed users with expired sessions will still have to log in
again, but at least they won't get an ISE before that;
logging in again is not a big issue anyway since that's
the first thing I would tell them to do to propagate the change
to LB anyway.
@reosarevok reosarevok added the Bug Bugs that should be checked/fixed soonish label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs that should be checked/fixed soonish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant