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, }), });