mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-12 14:47:46 +00:00
Fix broken login link on some webpages
This commit is contained in:
parent
e455bc10e5
commit
6af3392679
1 changed files with 8 additions and 2 deletions
|
@ -78,15 +78,21 @@ async fn world_status() -> Html<String> {
|
||||||
let template = environment.get_template("worldstatus.html").unwrap();
|
let template = environment.get_template("worldstatus.html").unwrap();
|
||||||
Html(
|
Html(
|
||||||
template
|
template
|
||||||
.render(context! { login_open => config.frontier.login_open, worlds_open => config.frontier.worlds_open })
|
.render(context! { login_server => config.login.server_name, login_open => config.frontier.login_open, worlds_open => config.frontier.worlds_open })
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn setup() -> Html<String> {
|
async fn setup() -> Html<String> {
|
||||||
|
let config = get_config();
|
||||||
|
|
||||||
let environment = setup_default_environment();
|
let environment = setup_default_environment();
|
||||||
let template = environment.get_template("setup.html").unwrap();
|
let template = environment.get_template("setup.html").unwrap();
|
||||||
Html(template.render(()).unwrap())
|
Html(
|
||||||
|
template
|
||||||
|
.render(context! { login_server => config.login.server_name })
|
||||||
|
.unwrap(),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue