Error after resetting password

1. In the login page, I ask to reset my password, fill in the information and I receive the email.
2. In the email, I click the URL and the browser opens in the correct page.
3. I submit the new password, I get the message that it updated successfully and I click on the link to go to the login page.
4. In the login page, I insert my login and the new password, submit the information, and I get the following error:

Thank you for support,
Alexandre Ramos [originally posted on jforum.net by aramos]

Migrated From Jforum.net

Ranch Hand

Posts: 17424

posted 9 years ago

As you found out, it looks like the returnPath on the login screen is not correct. You are getting logged on, but then being transferred to a non-existent page. This causes the 404 error.

I'm not sure how this is getting set up wrong. The recoverPasswordValidate method doesn't set a returnPath parameter. The only other option I see is that the referrer header is being passed with the strange URL for some reason.

Try setting the login.ignore.referrer to true in your jforum-custom.conf file. This will force the login page to only use returnPath parameters and ignore the referrer.

If this causes issues with people requesting pages, being directed to the login page, and then not getting back to the page they where trying to see... You might try adding a "hack" into the forum_login.htm Freemarker code that checks for that URL and corrects it.

Finally, you might look at creating a custom 404 page with a link back to the main site. Just to make it easier for users who find a bad link. [originally posted on jforum.net by monroe]