Ray mystic
Ray mystic

Reputation: 23

Laravel wrong password reset link

I have come across this problem in laravel which I am not able to solve it for days. Hopefully someone can point me in the right direction.

The password reset link is working properly on my localhost setup example

However when I deploy it on to a production server the password reset link that I got was different.

It seem to imply the quotation mark rather than the '/' which is supposedly to be the correct url. Anyone know what is the proper to go about fixing this wrong password reset link error?

Upvotes: 1

Views: 418

Answers (1)

Benjamin Dowson
Benjamin Dowson

Reputation: 579

What I suspect is happening is that there is a route conflict between some of your routes, such as GET password/reset and GET password/reset/token.

If you are passing your token parameter like this route('password.reset', $token) then it might be trying to apply your token to the wrong route as a GET parameter instead as part of the URL itself (ie, /reset?{token} instead of reset/{token}).

To confirm if this is the case or not, try changing your URLs into something different.

Upvotes: 1

Related Questions