Skip to content

fix(account): the session that changes the password goes on with its new tokens - #175

Merged
inkly merged 1 commit into
mainfrom
fix/session-after-password-change
Nov 10, 2026
Merged

inkly merged 1 commit into
mainfrom
fix/session-after-password-change

Conversation

@inkly

@inkly inkly commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Goes with ReCasaOS/CasaOS-UserService#13: a password change now ends every session of the account, the one that made the change too, and answers with the tokens that session goes on with.

The account panel stores those tokens where the requests read them (localStorage) and where the message bus follows them (the store). Without this the person who changed their password was asked to sign in again when their token ran out, within three hours.

A user service older than that answers with the user alone: the panel then leaves the session as it is.

Tests

src/components/account/AccountPanel.spec.js (new): the tokens of the answer are kept, and nothing is touched when the answer has none. The first failed before the change. The whole suite (8377 tests) and the lint of the two files pass. Not looked at in a browser.

…tokens the change answers with

A password change now ends every session of the account, the one that made it too, and the user service answers with the pair that session goes on with (ReCasaOS/CasaOS-UserService#13). The account panel stores it where the requests and the message bus read their token. An older user service answers with the user alone, and the session is left as it is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant