feat: add magic-link admin login and speaker materials portal
This commit is contained in:
1 parent
3adc0fd58f
commit
8d8d3ae4b8
28 files changed
+1623
-232
No files matched your search
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user