account: new login page, kept away while signed in; profile and avatar

The login page no longer opens when a session is saved: the session is
checked in the background and only an expired one brings the page back.
Continue without an account is remembered (ui.skip_account_prompt) until
the next sign-in.

The page is redesigned: the night artwork with what an account gives
beside the form on wide windows, the form alone on narrow ones; email,
password with a show button, the one-time code when asked, notices as
banners. Settings -> My Account shows the profile instead of a list of
notes.

voelin-myts asks the user service (/user, the route of the official
client) for getAccountData (description, registration, previous sign-in,
badges, devices, avatar file names) and requestAvatarSignedUrl, then
fetches the avatar (HTTPS only, at most 4 MiB). The UI keeps the profile
in the session's keyring bundle and the picture in <data>/account/avatar,
fetches it again only when its name changes, and uses it as the sidebar's
profile picture where a server has none for us.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
Claude committed 2026-10-04 22:12:07 +00:00
1 parent a44f994236
commit a57dfee83a
13 files changed
+1182 -143

No files matched your search

+25 -6
View File
@@ -84,11 +84,30 @@ are stored together as a single `myts/session` item through the app's secret
store, never in plaintext settings. Replacing one item prevents a partial write
from mixing credentials from different accounts. The bundle also stores the
account UUID, username and email, with backward-compatible defaults for older
bundles. Startup validates a saved session before showing its profile as signed
in. A valid session closes the login page; errors leave retry and manual sign-in
available. Transport failures retain saved credentials. A locked keyring can be
retried without restarting. Continue without an account dismisses the prompt
for the current run and leaves server features available.
bundles. With a saved session the login page does not open at all: startup
validates the session in the background (Settings → My Account shows the saved
profile as "Checking session…" meanwhile) and only an expired session brings
the page back. Errors leave retry and manual sign-in available. Transport
failures retain saved credentials. A locked keyring can be retried without
restarting. Continue without an account dismisses the page and is remembered
(`ui.skip_account_prompt`), so it does not ask at the next start; signing in
clears that.
### Profile and avatar
After a sign-in or a validated saved session the app asks the user service,
`https://clientapi.myteamspeak.com/user` (the route string is in the TS6
client next to `/authentication` and `/session`), for `getAccountData` with the
basic info, avatars, description, badges and authenticated devices, and shows
them in Settings → My Account (and the avatar in the sidebar's profile when
the server has none for us). `requestAvatarSignedUrl` turns the avatar's file
name (the "online" one first) into a signed HTTPS link, which is fetched
(at most 4 MiB) and kept in `<data>/account/avatar` for the next start; it is
fetched again only when the file name changes. The login response's own
avatar file names and description are used until then. What is kept goes into
the same secret-store bundle as the session (`profile`), never the token into
a URL. Neither call has been run against the live service from this
environment.
Sign-out returns to login, clears local account material and attempts remote
session deletion; storage or remote errors are reported. A late completion
@@ -131,7 +150,7 @@ The main account is shared by all voice connections. Each new connection signs
its own challenge. Account changes cancel an unfinished handshake; connected
clients send `updatemytsid`, and logout sends an empty myTS ID. Rejected or
unanswered account updates disconnect rather than retaining a previous account
association. Cloud avatar retrieval is outside this branch.
association.
Static TS3 evidence in the binary identified above: proof helper `0x1018580`,
`clientinit` invocation `0x1020c3b`, live update `0x1049659`, scalar signing