Display the list of registered clients

This commit is contained in:
2025-01-27 21:54:03 +01:00
parent 28b64b4475
commit 2c14281ae3
8 changed files with 147 additions and 8 deletions

View File

@ -34,6 +34,7 @@ pub async fn static_file(path: web::Path<String>) -> HttpResult {
struct HomeTemplate {
name: String,
matrix_token: String,
clients: Vec<APIClient>,
success_message: Option<String>,
error_message: Option<String>,
}
@ -122,6 +123,7 @@ pub async fn home(session: Session, form_req: Option<web::Form<FormRequest>>) ->
HomeTemplate {
name: user.name,
matrix_token: config.obfuscated_matrix_token(),
clients: config.clients,
success_message,
error_message,
}