vendredi 11 décembre 2020

Is it possible to verify an email before registering a user in Laravel 7?

What I want to do :

  1. User A sends email invitation to user B
  2. User B registers in site. Without having to verify his e-mail afterwards.

Please note, user B does not have any information stored in database until step 2.

My thoughts : If you take a look at laravel's verification.verify then a user key is required ,along with a hash. Is implementing a different verification.verify the only option ? Maybe there is a way to implement a VerifyEmailAddressNotification which contains a payload, that will enable a command such as $user->verifyEmailAddress();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire