Confirmation links: bring the button back and add the robot check before confirming
Back to our planProblem
#301 made /confirm-email and /verify-account confirm on page load. Email security filters can open links, render the page and run its JavaScript. So a workplace filter could confirm a sign-up, or release a contact message, without the person ever seeing the email.
Summary of the owner's direction (2026-10-23, Claude session):
A mail scanner opening that email and confirming the account is a bad outcome. Many people might sign up and have their workplace scan their email and activate the account without their knowledge. He asked to put the button back and add a hidden Cloudflare captcha or something similar, so the email is confirmed to come from a human before it is definitively confirmed.
He answered the options in the same session:
- Confirm flow: a button plus a robot check
- Now: yes, revert now
Proposed fix
- Revert #301 straight away (PR 1), so the button is back on both pages.
- Add the robot check (PR 2). The Confirm button runs the same Cloudflare Turnstile check the contact and sign-up forms use, and the server verifies the token before it confirms.
Native first
- Turnstile: already in the stack (
src/platform/turnstile/, decision 0003), with the widget and server verifier in place. - Button and POST interstitial: this is the standard mitigation for link scanners, as Suped and Descope, opens in a new tab both describe.
- Mouse-movement checks: those same sources call them unreliable.
Acceptance criteria
- Not done: Opening a link confirms nothing until the Confirm button is pressed
- Not done: The confirm endpoint and the verify action refuse a request without a valid Turnstile token
- Not done: The resent-link password step (#289) still works
- Not done: Tests; decision 0007 updated
Generated by Claude Code, opens in a new tab