protonemedia / laravel-verify-new-email

This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.
https://protone.media/en/blog/an-add-on-to-laravels-built-in-email-verification-only-update-a-users-email-address-if-the-new-one-is-verified-as-well
MIT License
404 stars 30 forks source link

Email not getting verified #4

Closed maxillarious closed 4 years ago

maxillarious commented 4 years ago

Hi, i did every thing just as the instruction implies but i think am missing something here.

When ever i initialise this $user->newEmail($data['email']); the email address specified receives the new email verification link but when i click on the link,

i get this Google Chrome This site can’t be reached page instead of verifying and redirecting to homepage.

Meanwhile the old email address doesn't change to the new one and the pending email is still there.

Thank you.

maxillarious commented 4 years ago

Haa, Found my problem.

I forgot that i was not using xampp. i had to change localhost to http://127.0.0.1:8000/, on the link in chrome but now am getting a 403 | Invalid signature error.

Does it mean i should still change localhost to http://127.0.0.1:8000/ in it's file, if true how can i find where it is located.

maxillarious commented 4 years ago

Wow, wasn't easy but finally fixed it but i won't call it a problem but blindness(because i couldn't see it).

SOLUTION: In command prompt(cmd) stop server by pressing Ctrl + c.

THEN:

In .env file,

changed the app url from http://localhost to http://127.0.0.1:8000,

THEN:

In cmd i executed this php artisan config:clear

THEN:

In cmd i executed this php artisan serve to start server

Here is a link for reference Starkoverflow

pascalbaljet commented 4 years ago

Glad you fixed it!