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
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.