Admin password login + attendee profile self-service

- contacts.password: admin-only APPE Admin login password (event-independent);
  must match the bcrypt hash in auth.users.encrypted_password (set in Supabase).
- APPE Admin login is now email + password (was QR token).
- update_my_profile RPC (security definer, scoped to current_email()): attendees
  set their LinkedIn URL + show_email / show_linkedin toggles from the Profile.
- Convivo Profile gains a 'Profile settings' card (LinkedIn + 2 toggles + Save).
- Visibility enforced server-side in the public projection (linkedin nulled when
  show_linkedin off, email omitted when show_email off).
- Seed: admin password appe-admin-2026; staff keep QR tokens as auth passwords.
- Docs updated (schema, rpcs, seed, admin-app, screens, api-client,
  architecture, next-steps, README, docker-compose).

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-08-23 14:11:26 +02:00
1 parent 2f3952dc71
commit 0221b1a8c0
19 files changed
+290 -59

No files matched your search

+9 -7
View File
@@ -280,14 +280,16 @@ Open **http://localhost:3000** (attendee) and **http://localhost:3001** (admin).
## 12. Demo accounts
Login = **QR code** (typed or scanned) + **email**. The QR token is the password.
**Attendees & staff** log in with **QR code** (typed or scanned) + **email** — the
QR token is the password. The **APPE Admin** logs in with **email + password**
(event-independent).
| Person | Role | QR code | Email |
| Person | Role | Login | Email |
|---|---|---|---|
| **Ana Silva** | attendee | `CVV-ANA-4821` | ana.silva@nubank.com |
| **Bruno Costa** | staff | `CVV-BRU-1177` | bruno.costa@acme.com |
| **Rita Lopes** | staff | `CVV-RIT-9034` | rita.lopes@globant.com |
| **APPE Admin** | admin | `CVV-ADM-0001` | admin@appe.at |
| **Ana Silva** | attendee | QR `CVV-ANA-4821` | ana.silva@nubank.com |
| **Bruno Costa** | staff | QR `CVV-BRU-1177` | bruno.costa@acme.com |
| **Rita Lopes** | staff | QR `CVV-RIT-9034` | rita.lopes@globant.com |
| **APPE Admin** | admin | **password** `appe-admin-2026` | admin@appe.at |
| Tomás Ribeiro | attendee | `CVV-TOM-5566` | tomas.ribeiro@dataprev.com |
| Sofia Almeida | attendee | `CVV-SOF-2299` | sofia.almeida@loop.com |
| Marco Chen | attendee | `CVV-MRC-7712` | marco.chen@deepmind.com |
@@ -303,7 +305,7 @@ Login = **QR code** (typed or scanned) + **email**. The QR token is the password
2. Scan **Marco** (`CVV-MRC-7712`) → send a connection request.
3. Log in as **Bruno** (staff) → the Scan tab becomes **Check-in** → pick a session → scan **Carla** (`CVV-CAR-6623`) → she gets +10.
4. Watch the **Leaderboard** update live.
5. Open the **APPE Admin** console on **:3001** → log in as **APPE Admin** (`CVV-ADM-0001` / admin@appe.at) → see the Dashboard, reset a contact's QR, adjust points, and edit the schedule.
5. Open the **APPE Admin** console on **:3001** → log in as **APPE Admin** (`[email protected]` / password `appe-admin-2026`) → see the Dashboard, reset a contact's QR, adjust points, and edit the schedule.
## 13. Roadmap