feat: add magic-link admin login and speaker materials portal

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-07 18:27:56 +02:00
1 parent 0b6d1f2b6f
commit 68fecc2ad1
28 files changed
+1623 -232

No files matched your search

+8 -7
View File
@@ -141,14 +141,15 @@ the work atomically, and the `leaderboard` table change fans out over Realtime.
(Staff can also still log in with their email + QR token, their seeded Auth
password.)
- **`@appe.at` admins:** any contact on the `@appe.at` domain is an admin
(`is_admin()` is domain-aware) and logs in with the **default admin password
`appe-admin-2026`** out of the box. The `trg_contacts_appe_at_admin` trigger
(`is_admin()` is domain-aware). The Admin console uses only
[email magic links](frontend/admin-app.md#auth-guard), without password login
or a password-change prompt. The `trg_contacts_appe_at_admin` trigger
sets `contacts.password` to the default (when null) and the auth-user
creation helpers hash it into `auth.users.encrypted_password`, so a
freshly-created `@appe.at` admin can sign in immediately. A custom password
set on the contact row is always respected.
- `enable_confirmations = false`, so **no email is sent** — the email is only a
"confirm it's you" check against the ticket purchase.
creation helpers hash it into `auth.users.encrypted_password`; these existing
passwords and shared password operations remain available for Convivo staff
login. A custom password set on the contact row is always respected.
- Normal attendee/staff QR login sends no email. `enable_confirmations = false`
disables signup confirmation, not explicit Admin/speaker magic-link requests.
- After login, the app holds a **session JWT** (in `localStorage`) that lasts
**24 hours** (`jwt_expiry = 86400`). Every request sends the **anon key**
(public) + the **session JWT** (identity).