If the user clicks on forgot password and then changes its password, by the time the user tries to login again, the next parameter wont be present anymore as its lost in the process. This means that the user wont be redirected where he was before starting the login process.
We could find a way to store the next parameter in the table containing the password reset token. This would allow the reset form to redirect the user to the next page
If the user clicks on forgot password and then changes its password, by the time the user tries to login again, the next parameter wont be present anymore as its lost in the process. This means that the user wont be redirected where he was before starting the login process.