su-fit-vut / kachna-online

Students' Club U Kachničky: Member's portal
MIT License
5 stars 5 forks source link

Add possibility to generate URLs that set card code after registration #111

Open ondryaso opened 2 years ago

ondryaso commented 2 years ago

In (near:tm:) future, there will be a thermal printer in the club. We could also use it in the registration workflow.

Currently, a person comes to the bar, taps their card which generates a registration code in KIS that the barman writes on a piece of paper with a QR code to Kachna Online's homepage and instructions.

With the printer available, the KIS frontend could print out a piece of paper with the QR code that would contain the generated registration code in its URL. When this URL is opened, the code would be saved to a local storage and when the user completes their registration, the app would automatically send a KIS card pairing request with the code saved in the local storage.

Changes needed in KO: