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:
13 files changed
+1182
-143
No files matched your search
@@ -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
|
||||
|
||||
+14
-6
@@ -192,12 +192,20 @@ Settings sections (`settings:<section>`):
|
||||
Settings controls read and write `voelin_core::settings` and apply at once;
|
||||
numbers are typed freely next to the presets.
|
||||
|
||||
Desktop startup shows the shared myTeamSpeak login page until a saved session
|
||||
is validated, a login succeeds, or the user chooses Continue without an account.
|
||||
The signed-in username/email becomes the primary app profile in the desktop
|
||||
user card and mobile You page; it does not replace server identities or bookmark
|
||||
nicknames. Settings → My Account reuses the form, supports retry/OTP/sign-out,
|
||||
and opens official browser flows for registration, activation, recovery and
|
||||
Desktop startup shows the myTeamSpeak login page (`LoginPage` in
|
||||
`screens/account.slint`: the artwork and 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, Sign in, password recovery and
|
||||
registration on the website) only when no session is saved and Continue
|
||||
without an account was never chosen (`ui.skip_account_prompt`). A saved
|
||||
session is checked in the background; only an expired one brings the page
|
||||
back. The signed-in username/email and the account's avatar become the
|
||||
primary app profile in the desktop user card and mobile You page; they do
|
||||
not replace server identities or bookmark nicknames. Settings → My Account
|
||||
shows the profile from the account service (avatar, name, email,
|
||||
description, member since, previous sign-in, badges, signed-in devices, the
|
||||
account and myTS ids) or the sign-in form, supports retry/OTP/sign-out, and
|
||||
opens official browser flows for registration, activation, recovery and
|
||||
account management. Account and renewal material live only in the keyring;
|
||||
passwords and one-time codes are cleared after submission. Expired sessions
|
||||
require fresh sign-in because password login supplies no renewal auth token.
|
||||
|
||||
Reference in new issue
Block a user