feat(#2035): auto-discover dashboard-provisioned matrix accounts via token+homeserver sidecar
This commit is contained in:
parent
cc73bc7cd0
commit
3b0a914487
6 changed files with 112 additions and 11 deletions
|
|
@ -244,7 +244,9 @@ pub(super) async fn post_matrix_account_login(Form(f): Form<MatrixLoginForm>) ->
|
|||
}
|
||||
};
|
||||
|
||||
if let Err(e) = crate::priv_client::write_agent_matrix_token(agent, &token, Some(account)).await
|
||||
if let Err(e) =
|
||||
crate::priv_client::write_agent_matrix_token(agent, &token, Some(account), Some(homeserver))
|
||||
.await
|
||||
{
|
||||
return error_response(&format!("matrix-account-login: write token failed: {e:#}"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue