samedi 4 mai 2019

Why Laravel requires authentication to email verification?

Laravel's built-in email verification uses Signed URL and requires authentication. https://github.com/laravel/framework/blob/5.8/src/Illuminate/Foundation/Auth/VerifiesEmails.php#L35

Question: Is there a problem to verifying email without authentication?

requiring authentication may be a bother in some cases.

for example, thinking about that use Laravel as the backend of a mobile application. The app requires registration and email verification to use. users will register with the following step.

  1. register via mobile app
  2. receive mail to email verification
  3. open link in email in browser

in this case, the user will not pass email verification because the browser has not any credentials.

URL Generation doc says that

For example, you might use signed URLs to implement a public "unsubscribe" link that is emailed to your customers.

It looks similar case.



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Y6ZiDr
via IFTTT

Aucun commentaire:

Enregistrer un commentaire