From 77b48a1dec05e1596a1dcddb953285d75ff623f9 Mon Sep 17 00:00:00 2001 From: trouze Date: Sat, 27 Jun 2026 15:02:11 -0500 Subject: [PATCH] altcha fix --- src/pages/subscribe.astro | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/pages/subscribe.astro b/src/pages/subscribe.astro index 37fe9be..49b4a1a 100644 --- a/src/pages/subscribe.astro +++ b/src/pages/subscribe.astro @@ -21,15 +21,7 @@ const meta = { required autocomplete="email" /> - - + { e.preventDefault(); - // Honeypot: if filled by a bot, pretend success and stop. - if (honeypot.value) { - showResult('success'); - return; - } - - const altchaPayload = form.querySelector('input[name="altcha"]'); - if (!altchaPayload?.value) { + if (!widget.value) { widget.classList.add('visible'); return; } @@ -95,8 +79,7 @@ const meta = { body: JSON.stringify({ email: emailInput.value, list_uuids: [LIST_UUID], - captcha_solution: altchaPayload.value, - website: '', + altcha: widget.value, }), });