Convivo login: staff QR asks for staff password (not email)
When a staff QR is detected, the confirm step now shows a password field instead of the email field. Login uses the resolved contact's email + the entered staff password (signInWithPassword). Attendees are unchanged (QR + ticket email). Docs updated (screens.md, architecture.md). 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:
1 parent
5886de9d19
commit
adcbb507e9
3 files changed
+81
-32
No files matched your search
@@ -25,12 +25,20 @@ A 3-step flow: **splash → scan → confirm**.
|
||||
2. **Scan** — scan (or type) your lanyard QR. Calls `lanyardLookup(qrToken)` to
|
||||
resolve the contact (pre-login, public). Shows the resolved name + registration
|
||||
type badge.
|
||||
3. **Confirm** — enter the **email used to buy the ticket**, then
|
||||
`signInWithPassword({ email, password: qrToken })`. On success the
|
||||
`AuthContext` updates and the Shell renders the app. On mismatch, an error is
|
||||
shown ("Email and QR code do not match").
|
||||
3. **Confirm** — the field depends on the resolved role:
|
||||
- **Staff** (`registration_type === 'staff'`) — enter the **staff password**.
|
||||
Login is `signInWithPassword({ email: <resolved contact email>, password })`.
|
||||
(The email is taken from the resolved contact, so staff only type their
|
||||
password.)
|
||||
- **Everyone else** — enter the **email used to buy the ticket**, then
|
||||
`signInWithPassword({ email, password: qrToken })` (the QR token is the auth
|
||||
password).
|
||||
|
||||
> This is the QR + email login — no email is ever sent. See
|
||||
On success the `AuthContext` updates and the Shell renders the app. On
|
||||
mismatch, an error is shown ("Email and QR code do not match" for attendees,
|
||||
"That password is incorrect" for staff).
|
||||
|
||||
> No email is ever sent. See
|
||||
> [../architecture.md#6-authentication-model](../architecture.md#6-authentication-model)
|
||||
> and [../backend/rls.md](../backend/rls.md).
|
||||
|
||||
|
||||
Reference in new issue
Block a user