configurable honeypot toggle

This commit is contained in:
Lewis Wynne 2026-04-09 14:46:40 +01:00
parent 5bfba1b6ff
commit c3ceb39b71
3 changed files with 12 additions and 1 deletions

View file

@ -53,7 +53,7 @@ async fn submit(
Form(form): Form<SubmitForm>,
) -> Html<String> {
// Honeypot check — silently discard
if !form.url.is_empty() {
if state.config.honeypot && !form.url.is_empty() {
return Html("Thanks! Your message is pending approval.".to_string());
}