Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expired password token should not redirect in headless mode #5210

nicgordon opened this issue Nov 6, 2019 · 0 comments


Copy link

@nicgordon nicgordon commented Nov 6, 2019


I believe that this function should be checking for Craft::$app->getRequest()->getAcceptsJson() and returning a json error rather than a redirect if the request does indeed accept json.

I just thought I'd make an issue just in case I'm incorrect and always returning a redirect is in fact intended behaviour.

Steps to reproduce

  1. Run craft in headless mode
  2. Make a POST request to users/set-password with an invalid token
  3. Expect a json error, but instead receive a 302.

Additional info

  • Craft version: 3.3.14
  • PHP version: 7.3.10
  • Database driver & version: mysql 5.0.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.