site-mva-global-fret/cloudflare-worker
MVA Global Fret 07ccec0808 Anti-spam: only register HubSpot contact AFTER email confirmation
Previously the Forms API created the contact at form submission time —
which meant unverified signups (bots that pass Turnstile, typos, fake
emails) polluted HubSpot. Now:

- Form submit → Worker stores all data in KV (24h TTL) + sends Brevo
  verification email (no HubSpot write)
- User clicks email link → Worker generates ref + creates HubSpot
  contact via CRM API + sends welcome email with ref + Paris address

Plus this commit:
- Email header gets the MVA logo on the left of the dark blue banner
- Welcome email's first address line auto-injects (MVA-XXX) so the
  customer can copy it directly onto their package

Also handles idempotency — clicking the verification link a second time
returns the existing ref without creating a duplicate.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 13:50:32 +02:00
..
DEPLOIEMENT.md Worker: cron post-confirmation pour envoyer le welcome email après opt-in 2026-05-05 23:24:26 +02:00
hubspot-proxy.js Anti-spam: only register HubSpot contact AFTER email confirmation 2026-05-06 13:50:32 +02:00