A church moved sign-in to Accounts without email set up there: codes and
password links couldn't be sent, sign-in failed with a 500, nobody could
get in.
- contracts 1.9.0: messaging.status/test/set (SMTP, WAWP; secrets sealed);
people.ensure answers emailSent.
- Accounts 1.2.0: SendError instead of a 500; WhatsApp codes fall back to
email; forgot password says email isn't set up; setup only offers
methods that work; messaging.* (test, save only what worked); test
WhatsApp in admin; WAWP from .env.
- Events 3.1.0: Settings -> Sign-in shows what Accounts can send and
copies this site's SMTP/WAWP into it (secrets stay on the server), test
then save; Move disabled and refused (EMAIL_NOT_READY) without email.
Tests: Accounts 54, contracts 218, Events 774, test:accounts 16 (also on
Postgres).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- contracts 1.8.0 / Accounts 1.1.0: import.finish lists the subs the product
relies on; Accounts checks each is held, not deleted and known to it (the
count+hash failed a second move after Undo once someone had joined
through Accounts).
- Events: connects to the church's Accounts once the Hub lists it;
moveNewPeople (demo data, people added after the move); set-demo moves
demo people; e2e/sign-in-accounts.spec.ts with Accounts in memory and an
e2e-only /api rewrite. test:accounts 14/14; Jest auto-connect tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings -> Sign-in: check, move (everyone into Accounts with their password
hashes and authenticator apps, count/hash check, then switch) and undo for
14 days. Sign-in through auth-client with a one-time handoff to Events' own
token; staff roles stepped up to mfa; sign-out and back-channel logout;
user.updated/export/deleted; admin 2FA reset, unlock and profile changes via
Accounts; /login, /register, /forgot-password forward once moved; Events'
own sign-in endpoints answer SIGN_IN_MOVED. User.accountId, AccountsSignIn.
npm run test:accounts runs Events' code against the real Accounts app (11
tests); 5 new Jest tests. MIGRATING-TO-3.md, plan "Changes while building".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Product -> Accounts requests at /api/accounts/v1/requests, signed with the
link secret: import.begin/batch/finish/abort for moving a product's users
in (EVENTS-3.0-PLAN §4), people.* for product admins (§8). sealLinkValue /
openLinkValue seal password hashes and TOTP secrets with a key derived
from the link secret; importIdsHash for the final check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EVENTS-3.0-PLAN.md: User.accountId, sign-in through auth-client with a
one-time handoff to Events' own token, 2FA step-up for staff, the user
import into Accounts (hashes, authenticator secrets, consent, notices),
an admin-run move with 14 days' undo, and what Accounts 1.1.0, contracts
1.8.0 and Hub 2.5.0 need. Linked from the roadmap and handover.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>