UoaWDCC / passport

WDCC Passport project. Established in 2024.

Home Page:https://wdcc-passport.fly.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validating QR code against listed events

derogative404 opened this issue · comments

Description

Upon scanning the QR code, validate the QR code against existing events and only let the user to the sign-in page if the status of the event is active and valid. Or else route user to QR code error page.

Proposed Solution

https://www.figma.com/file/tvnkfOcsSfp21oouz9Lbqy/Initial-Design?type=design&node-id=1%3A2&mode=design&t=wjUjqygQIxZS5Kkj-1

Acceptance Criteria

  • Once the user signs-in after scanning, QR code is checked for whether it belongs to an active event within the database
  • If the event is valid, the associated event is added to the eventsList property within the Users collection.
  • If not valid or part of an active event, user is routed to /qr-error
  • check for access token still being in local storage and if it mathces the token in the database. If so, user is directed to the passport page, skipping the login screen.

Notes