Confirm email links on page load, without a button (contact and sign-up)
Back to our planProblem
Today, opening a confirmation link shows a page with a button ("Confirm my email" on /confirm-email, "Confirm My Account" on /verify-account), and nothing is confirmed until it is clicked. People may not notice they have to click.
Summary of the owner's request (2026-10-23, Claude session):
When people confirm their email, they should only need to click the link, and the account should be confirmed automatically as soon as the page loads or submits. That is the standard behavior as he understands it, and no button should be needed, since many people might not notice they have to click. He asked for the button to be removed in both cases right away and then deployed.
Proposed fix
- Both pages confirm on load:
/confirm-email(contact senders) and/verify-account(new accounts). - How: the page's own script posts the token once it loads, so it's still a POST from the browser, never a GET that confirms.
- Errors: a "Try again" button shows only after a failure, such as no connection.
- A resent sign-up link still asks for the password (#289), which shows straight away.
Trade-off (recorded for the owner)
The button was there because some mail security scanners open links before the person does.
- Scanners that only fetch the page don't run its script, so they still confirm nothing.
- Scanners that run scripts (some corporate filters) could now confirm on the person's behalf. That's harmless for a contact message. For a first sign-up link, it could activate an account that someone else started with that address, which is #290 item 2.
Acceptance criteria
- Not done: Opening either link confirms without a click, once, even if React runs effects twice in development
- Not done: Failures show a clear message and a Try again button; dead and used links behave as before
- Not done: The resent-link password step still works
- Not done: Docs and decision record 0007 updated; tests updated
Generated by Claude Code, opens in a new tab