Watch
0
0
Fork
You've already forked hyperhive
0

Drop the last references to the removed hive matrix login form

`PutMatrixAccountRequest`'s no-`Debug` comment named the deleted
`MatrixLoginForm` as its precedent; it now states the reason directly.
The daemon's missing-sidecar warning told operators to re-login via the
dashboard, which no longer has that form; it now points at re-linking
the account from the swarm UI, whose stored credential carries the
homeserver the sidecar is written from. Behaviour is unchanged.

Refs #4348
This commit is contained in:
atlas 2026-09-29 11:35:57 +02:00 • committed by mara
commit f6ac007dc0
2 changed files with 3 additions and 4 deletions

View file

@ -208,7 +208,7 @@ fn discover_token_accounts_in(
account = name, account = name,
sidecar = %sidecar.display(), sidecar = %sidecar.display(),
"matrix: discovered token but no homeserver sidecar; skipping account \ "matrix: discovered token but no homeserver sidecar; skipping account \
(re-login via the dashboard to write it)" (re-link the account from the swarm UI to write it)"
); );
continue; continue;
}; };

View file

@ -81,9 +81,8 @@ pub(crate) fn configured_default_homeserver() -> Option<String> {
/// The credential to store for one agent's external matrix account. /// The credential to store for one agent's external matrix account.
/// ///
/// No `Debug` derive — matching `hive-c0re::dashboard::matrix_accounts`'s /// No `Debug` derive: this carries a password and a token, so nothing may
/// analogous `MatrixLoginForm`, which also carries a password field and /// `{:?}`-log it by accident.
/// deliberately omits it so nothing can `{:?}`-log this by accident.
#[derive(Deserialize, ToSchema)] #[derive(Deserialize, ToSchema)]
pub struct PutMatrixAccountRequest { pub struct PutMatrixAccountRequest {
/// `"token"` (default, back-compat) or `"password"`. Token mode stores /// `"token"` (default, back-compat) or `"password"`. Token mode stores