configurable honeypot toggle
This commit is contained in:
parent
5bfba1b6ff
commit
c3ceb39b71
3 changed files with 12 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue