A
A
alexcook2018-03-25 15:52:56
User identification
alexcook, 2018-03-25 15:52:56

User preauthentication/authorization in Laravel 5.5?

There is a site on Laravel 5.5 where you can create and order a finished product.
Since creating an order requires some effort, but the user may not want to spend time registering before placing an order - you need the ability to pre-identify the user (perhaps creating a temporary account) in order to be able to link the created order to this user even before registering it . And only at the end, when entering data for sending an order, allow the user to register.
How can I link an order to a user who has not yet registered?
Well the mind comes up with something like:
Each time you open the page, create some kind of "digital signature" for the user and compare it with the "signatures" in the database, and if a temporary or permanent account with such a digital signature is not found, then create a new account to which you can link the order. + you can use some system of account roles (temporary/permanent)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Novikov, 2018-03-27
@Novikofff

There are already Sessions and Cookies for this.
The session is created not only for an authorized user.
To save your cart across multiple visits, use browser cookies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question