Support the ongoing development of Laravel.io →
Security Database Mail
Last updated 2 years ago.
0

I don't know what the industry standard is, but I would do something like the following:

On registration I would create some sort of random token that gets saved with the user entry in the db. That token gets emailed in the form of a link. When the user clicks the link, the token is compared against the email address.

Route::get('email-confirmation/{email}/{token}', function ($email, $token) {
    //do magic. check email matches token in database entry, activate account, delete temp confirmation entry, etc
    echo $email . $token;
});
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

hudasanca hudasanca Joined 19 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.