feat: Add option for a noindex meta tag on the HTML index page

Adds a new config option `index_page_allow_indexing` which defaults to false.

Fixes: !1527
This commit is contained in:
theS1LV3R authored and Ginger committed 2026-03-18 12:42:55 -04:00
1 parent 67d5619ccb
commit 7b6bf4b78e
6 files changed
+28 -1

No files matched your search

+3
View File
@@ -27,6 +27,7 @@ struct PasswordResetQuery {
struct PasswordReset<'a> {
user_card: UserCard<'a>,
body: PasswordResetBody,
allow_indexing: bool,
}
#[derive(Debug)]
@@ -74,6 +75,7 @@ async fn password_reset_form(
let template = PasswordReset {
user_card,
body: PasswordResetBody::Form(reset_form),
allow_indexing: services.config.index_page_allow_indexing,
};
Ok(Html(template.render()?))
@@ -112,6 +114,7 @@ async fn post_password_reset(
let template = PasswordReset {
user_card,
body: PasswordResetBody::Success,
allow_indexing: services.config.index_page_allow_indexing,
};
Ok(Html(template.render()?).into_response())