vote
vote copied to clipboard
Proposed user creation with client side QR
New flow for user creation
- The user is prompted with the
Create userbutton that generates a username and a password. - The user is prompted to take a screenshot of the random username and password.
- The user is shown a QR code created by a
username:password:codestring. The user is now ready to approach the mod-computer. - The moderator scans a white card, giving the mod-computer the
cardKey, which prompts the camera feature on the computer. - The user shows his/hers QR code to the computer camera
- The mod-computer sends the
username,password,codeandcardKeyto the VOTE-API - The VOTE-API creates the user, and sends a websocket msg to all users with the
code - The user sees his/her
codeon the websocket msg, and his/hersusernameandpasswordare autofilled and logged in.

Proposal v2.1

Make 1 RSA keypair on API-startup (or via env, but we only run one instance because of sockets), and all qr-codes are encrypted with that one. The public key can be embeded into the HTML-response, or fetched via. a simple request.
Not 100% necessary, but the QR code may be visible for several minutes, and with this it wouldn't matter.
Any thoughts @orhanhenrik?