Forgot password showing error on refresh by pressing enter key on address bar

Forgot password showing error on refresh by pressing enter key on address bar

by Crazy Coder -
Number of replies: 0

When a user clicks on the link in the forgot password email a form is shown with url 'moodle/login/forgot_password.php?token=xyz'. Now when a user enters an invalid password and press the save changes button the form is submitted using POST method and now the url changes to 'moodle/login/forgot_password.php'. So after that if the user refreshes the page by pressing enter key on address bar then it will show another form to enter the email for sending the forgot password link. It can be fixed by changing the form method to 'GET', but is not a good way as all the details will be passed through url. Is there any other way to fix this issue?

Average of ratings: -