Display the list of registered clients
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user