feat(website): crosscode website.sh and signing in through Accounts

crosscode: scripts/products/website.sh (ports 5300/3300, uploads in the
export), crosscode add <church> website (needs Accounts; www.<address>
or the Cross Code address), one install_app for Accounts and the
Website, env template copy, bats tests.

Backend: Hub client (protocol v2, product website), crosscode.link/1
with automatic connect to the church's Accounts, sign-in through
@crosscode/auth-client with the Website's own session and roles, the
first Owner from HUB_ADMIN_EMAIL (verified), 2FA for Owners and Admins,
back-channel logout, Accounts' user.* calls, and the church export.
Frontend: admin sign-in/out and the sign-in problem page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 09:27:07 +02:00
co-authored by Claude Opus 5.5
parent 79121bc447
commit 58960b5e93
43 changed files with 2361 additions and 77 deletions
+5
View File
@@ -456,6 +456,11 @@ preview and SEO warnings where they apply (ROADMAP §11).
Admin roles can require 2FA through Accounts (`acr_values=mfa`, ACCOUNTS-1.0-PLAN decision 8): on by
default for Owner and Admin.
**The first Owner** (built 2026-11-25, to confirm): whoever signs in through Accounts with the
church's admin email from the Hub (`HUB_ADMIN_EMAIL`, as Accounts' setup uses it), with that email
verified in Accounts, while the site has no Owner. Everyone else is added by an Owner or Admin. If
the last Owner's account is deleted, the same rule finds the next one.
**Storage** (ROADMAP §10): 5 GB of uploads included. Settings shows what's used; admins get an email
at 80% and at 100%. **When it's full, uploads stop** (decision 12) until more storage is bought:
the media library and every upload field say so, with **Get more storage** (Settings → Storage).