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

resetPassword: Permission denied for this action. #1212

Closed
3 tasks done
andresgarza opened this issue Mar 27, 2016 · 4 comments
Closed
3 tasks done

resetPassword: Permission denied for this action. #1212

andresgarza opened this issue Mar 27, 2016 · 4 comments

Comments

@andresgarza
Copy link

Environment Setup

parse-server v2.2.2

Steps to reproduce

  • Setup email adapter according to README instructions
  • Request password reset email
  • Click on link to go to choose_password page
  • Attempt to submit password

Logs/Trace

No logs/errors on server by default, but by running the server locally, I was able to determine the userController.updatePassword in the PublicAPIRouter catches the Permission denied for this action. error and redirects back to the choose password page.

@flovilmart
Copy link
Contributor

@carmenlau ?

@seryoni
Copy link

seryoni commented Mar 27, 2016

I was able to the reset password use case to work with SimpleMailgunAdapter. I did have to debug some of the internals though.

Setting the following arguments that must be passed to the ParseServer ctor solved all the permission denied stuff.

publicServerURL: process.env.PUBLIC_SERVER_URL || 'http://localhost:1337/parse'

appName: process.env.APP_NAME || '<your app name?'

emailAdapter: simpleMailgunAdapter

I set publicServerURL to be the same as serverURL. Didn't really understand the need for both but if you don't set the publicServerURL it all doesn't work.

@seryoni
Copy link

seryoni commented Mar 27, 2016

flovilmart already answered my question below on a different thread. Looks like the documentation on the main project thread got updated with more details.

@andresgarza
Copy link
Author

@seryoni / @flovilmart I'm actually passing all those options, but I figured out what the actual problem was: it seems like the latest package in NPM was released before bunch of commits needed for the password reset to correctly work.

@flovilmart / @gfosco since the README already mentions how to setup email for password resets, could we release a new version of the npm package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants