site-mva-global-fret/js
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
..
confirmation.js Switch from Resend to Brevo for transactional emails 2026-05-06 12:26:50 +02:00
form-handler.js Anti-spam: only register HubSpot contact AFTER email confirmation 2026-05-06 13:50:32 +02:00
intro-scene.js Intro: bouton 'Accéder au site' visible immédiatement, sans animation 2026-05-05 22:21:30 +02:00
main.js Translate CGV page to EN/MG + full i18n audit fixes 2026-05-04 17:39:55 +02:00
translations.js Email verification flow via Resend (Turnstile + click-to-confirm) 2026-05-06 10:59:26 +02:00