mirror of
https://github.com/redstrate/Kawari.git
synced 2025-05-12 14:47:46 +00:00
Add links to return home on the login pages
This commit is contained in:
parent
adb1259829
commit
e455bc10e5
3 changed files with 16 additions and 2 deletions
|
@ -13,4 +13,6 @@
|
|||
|
||||
<p><small>This is not an official login page. It will <i>not</i> accept your official account's credentials, please do not enter them here!</small></p>
|
||||
|
||||
<a href="http://{{ web_server_name }}">Return Home</a>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -13,4 +13,6 @@
|
|||
|
||||
<p><small>This is not an official registration page.</small></p>
|
||||
|
||||
<a href="http://{{ web_server_name }}">Return Home</a>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -173,15 +173,25 @@ async fn check_session(
|
|||
}
|
||||
|
||||
async fn login() -> Html<String> {
|
||||
let config = get_config();
|
||||
let environment = setup_default_environment();
|
||||
let template = environment.get_template("login.html").unwrap();
|
||||
Html(template.render(context! {}).unwrap())
|
||||
Html(
|
||||
template
|
||||
.render(context! { web_server_name => config.web.server_name })
|
||||
.unwrap(),
|
||||
)
|
||||
}
|
||||
|
||||
async fn register() -> Html<String> {
|
||||
let config = get_config();
|
||||
let environment = setup_default_environment();
|
||||
let template = environment.get_template("register.html").unwrap();
|
||||
Html(template.render(context! {}).unwrap())
|
||||
Html(
|
||||
template
|
||||
.render(context! { web_server_name => config.web.server_name })
|
||||
.unwrap(),
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
|
Loading…
Add table
Reference in a new issue