Password reset link forwards to home on 5.2

Luiz Kill 3 years ago

I've set the server url so the password reset link can point to the right location. Example: https://mydomain.com/?passwordReset=d5c4466fa81e36b05441e2fdXXXXXXXXXXX

But when I click it I get redirect back to the home page. Is it something with the server or maybe Cloudflare is doing funky things?

Thanks!

Tracker 3 years ago

Adjust the URL in the passwordReset.vm template to something like $webUrl/modern/reset-password?

Luiz Kill 3 years ago

I confirm that adding 'modern/reset-password' to the link does make a difference, I don't get redirected.

Tracker 3 years ago

Did you also add reset-password to test so the link looks something like below?
https://mydomain.com/modern/reset-password?passwordReset=8e6a3xxxxxf2451182d71axxxxxxxxxxxxxxx

Luiz Kill 3 years ago
Tracker 3 years ago

Not sure why it is not working for you. Since I only use the modern app my settings that work looks like below:
In traccar.xml
<entry key='web.url'>https://mydomain.com/modern</entry>

Then in the passwordReset.vm template
href="$webUrl/reset-password?passwordReset=$token">$webUrl/reset-password?passwordReset=$token

It is working for me.

Luiz Kill 3 years ago

Nice. So I guess the 5.2 version needs a PR to fix the passwordReset.vm template, right?

<a href="$webUrl?passwordReset=$token">$webUrl?passwordReset=$token</a><br>
Luiz Kill 3 years ago