G
G
gulinvd2021-03-29 17:03:12
QR codes
gulinvd, 2021-03-29 17:03:12

Authorization to the site by QR-code for a regular landing?

Good day friends, please tell me, the task is to make up a wedding landing
BUT
the idea is this:
there is a QR-code on the invitation cards, according to which you can actually immediately log in to the site with such and such a password and such and such a login.
Is it even possible to make instant authorization through a QR code, because in fact, when scanning, this is a regular link that leads to the site.
I am an amateur in this matter, in fact, that's why I ask for help.
Google didn't come up with much answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2021-03-29
@SagePtr

What's the problem? Store a table of correspondences between logins and random long enough identifiers. When logging in with this identifier, create a user session as if the user logged in with his username and password. Something like this on the sites and the mechanism "remember me" is arranged. Make an endpoint on the site that accepts an identifier via GET as an input, checks the identifier against the database and logs in the user if the identifier matches some login, or gives a beautiful error message that the QR code has already expired. And there are a lot of libraries that wrap links in a QR code, ready-made, both on the backend side and on the frontend side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question