Skip to content
SprecherEast
Issue 289

Resend or clean up unverified accounts whose verification email was lost

Back to our plan
Done
enhancementauthpriority: low

Problem

This came up in the review of #288, from both Copilot and the independent review. Since #187, a new resident account stays unverified until its link is opened. If the email is sent but lost (spam folder, deleted, mailbox gone), the address is stuck:

  • signing up again is refused as a duplicate (with the same generic answer);
  • an unverified account gets no reset email (noResetEmailWhileUnverified).

Only an admin can fix it, by deleting the account.

#288 already covers the case where sending fails: the action deletes the unverified account it just stored.

Findings (native first)

  1. Native: Payload 3.91 has no "resend verification" operation (checked in the installed source during #288's review).
  2. Official plugins: none for this.
  3. Our own code, two options:
    • A (recommended): a second sign-up for an address whose account is still unverified sends a new verification link. It gets the same answer, robot check and limits as sign-up, and stays in the accounts module.
    • B: remove unverified accounts after a set time (for example 7 days). This needs Payload jobs (#141).

Question for the owner

Which do you want: A, B, or both?

Acceptance criteria

  • A visitor whose verification email was lost can get a working link without an admin.
  • The answer never shows whether an account exists, and the reset-email restriction stays.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab