mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
fix(stalker): keep the portal's words on every login refusal
Only the terminal `blocked` exit carried the portal's own explanation. A login refusal is precisely where a portal says something actionable — wrong password, subscription expired — and every status-2 exit threw without it, leaving the dialog on a generic line while the useful sentence sat unread in the payload. Each exit now reads the response in hand, so the retry's rejection is quoted rather than the request that already succeeded. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3b6107335d
commit
a0bfc28dc7
3 files changed
+75
-3
No files matched your search
@@ -345,6 +345,18 @@ dialog shows them in its failure snackbar (with kind-specific i18n headlines,
|
||||
guidance) when category loading failed with a portal refusal
|
||||
(`stalkerCategoryErrorDescription` in `workspace-context-panel.component.ts`).
|
||||
|
||||
Both renderers are kind-agnostic — they append `portalText` whenever it is
|
||||
present — so the obligation sits entirely on the throw sites: **every** exit
|
||||
out of the status-2 branch carries the text, not just the terminal `blocked`
|
||||
one. A login refusal is precisely where the portal says something actionable
|
||||
("wrong password", "subscription expired"), and dropping it leaves the user
|
||||
with a generic line while the useful sentence sits unread in the payload.
|
||||
Each exit reads the response IN HAND: after the `auth_second_step=1` retry the
|
||||
text is the retry's, since quoting the first profile back would describe a
|
||||
request that already succeeded. `do_auth` itself answers a bare `{js: false}`,
|
||||
so a rejection there keeps the profile's text — the one that asked for the
|
||||
login.
|
||||
|
||||
### Abandoning an authentication
|
||||
|
||||
`authenticate()` takes an optional `AbortSignal` and checks it before every
|
||||
|
||||
Reference in new issue
Block a user