Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dotmra's avatar

One-Time Login Link

Hello Laracasts,

I am doing a new project which have two types of "users".

One of them is the normal kind of users with email and password, which requires the normal login routine. But for the front-end where people have to take a Quiz/ Test - they will be sent a link in an e-mail to login.

What is the best way to implement that kind of One-Time Login?

The 2 login method would be on 2 separate subdomains but will share a single database.

If there is a package for that, great - Haven't been able to find any.

I could probably code something myself, but I am looking for the best way to approach the problem, to see if I should do it my way (Haven't made solution atm, but could probably come up with something)

0 likes
2 replies
dotmra's avatar

@van1310

Doesn't that require that there is a user present to authenticate the link.

The ones that are taking a test won't get a user that can be used. It is simply a link you get from a email.

So in my table I need to allow the same email multiple times, because I need to records about when the link was sent, to which quiz, email sent time and when the link was used.

The table is easy enough, but is there a way to authenticate a "user" that only has a email and no password?

Please or to participate in this conversation.