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
+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