8 Commits
Author SHA1 Message Date
Alexey Milovidov d7aa6fc1f3 Do not keep password in the URL and browser history on the /binary page
Address review: `updateHistory` re-serialized the whole query string,
so the `password` parameter was written back into the address bar and
into the browser history on every pan and zoom. The password is already
copied into the internal `url` variable at startup, so requests keep
working without it in `window.location`. This matches
`programs/server/schema.html` and `programs/server/play.html`, which
also do not keep the password in generated URLs.
2026-09-01 02:18:30 +00:00
Alexey MilovidovandClaude Opus 5 f710d7b941 Fix two problems on the /binary page
The initial view was reset to the top-left corner of the image whenever
the URL contained any query string, such as `?user=play`, because the
position was read even if `x`, `y` and `zoom` were not present. Now the
view is moved only if the position is specified.

`updateHistory` rebuilt the query string from scratch, so the `host`,
`user` and `password` parameters were dropped on the first move, and all
subsequent requests were sent without authentication. Now the position
parameters are updated in place, keeping everything else.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-29 15:52:14 +02:00
Alexey MilovidovandClaude Opus 4.7 0c395a9198 Web pages: empty user input falls back to server default
The "user" input on `play.html` and on the other web pages
(`dashboard.html`, `jemalloc.html`, `merges.html`, `binary.html`,
`webterminal.html`) previously came pre-filled with the literal text
`default`. Replace that with an empty value and a `user` placeholder
hint. When the value is empty, the page does not send a `user=` query
parameter (or, in the WebTerminal protocol, omits the `user` field
from the auth JSON), letting the server fall back to its configured
default user — which is not necessarily named `default`.

For the WebTerminal, `parseAuthMessage` now treats the `user` field as
optional: when omitted or empty, the caller-provided default is
preserved. The call site seeds it with `default`, mirroring the HTTP
fallback in `authenticateUserByHTTP`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 18:53:07 +02:00
Alexey Milovidov d50a840aff Better regexp 2025-02-15 08:17:11 +01:00
Alexey Milovidov bcc6226a06 Improve the "binary" page 2025-02-15 07:53:19 +01:00
Alexey Milovidov 667256a67d Fixes for binary.html 2024-02-01 20:36:38 +01:00
Alexey Milovidov 4dcf27e5b2 /binary: allow specifying user/password/host 2024-01-28 18:27:15 +01:00
Alexey Milovidov 0e89d01b94 Binary (symbols) viewer 2023-12-24 12:14:45 +01:00