mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 16:13:15 +00:00
A Bearer login may claim a bare local part, which is accepted when the server's `Session.username` has the same local part (TOTP users who type `john` log in this way). Settings were keyed on that claim, so on a multi-domain server `john@b.example` could claim `john` and read and overwrite the synced settings of the `john@a.example` who signs in as `john` with a password. `resolveJmapIdentity` now returns the canonical account name for a bare Bearer claim, the context cookie carries it as `accountName`, and the settings route keys on it. Basic logins and fully-qualified claims keep their existing key.