Skip to content

Password Reset Issue...Link in the reset email not redirecting to change password. #1260

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

Closed
djarunn opened this issue Mar 29, 2016 · 8 comments

Comments

@djarunn
Copy link

djarunn commented Mar 29, 2016

I am getting the email on resetting the password from mail gun, but on clicking the link response shows
Cannot GET /apps/APP_ID/request_password_reset?token=&username=

Environment Setup

I have Deployed the PARSE Server Example App on heroku. ( "parse-server": "~2.2.2")

Modified the index.js properly to configure the SimpleMailGunAdapter.

Steps to reproduce

Initiated Reset Password from android app
Got the email for password reset with the link in this format:
https://xxx.herokuapp.com/apps/MyApplicationID/request_password_reset?token=&username=xxx%40gmail.com

Clicking the link ,didn't redirect to choose password page, rather gives the response as
Cannot GET Cannot GET /apps/<APP_ID>/request_password_reset?token=&username=

I have tried adding the custom pages as well , but that didn't work.

Problem seems to be with routing, and being new to express I am unable to fix it.

Can someone please help.

Logs/Trace

@drew-gross
Copy link
Contributor

This was fixed by #1253 which will go out in the next update.

@djarunn
Copy link
Author

djarunn commented Mar 30, 2016

Hi Drew,

#1253 seems to be the issue with invalid token, but in my case token is
generated correctly.

The problem is with the express routing,its not fetching the reset URL.

Do I need to specify any additional route.
As in my index.js the only route is at the root ('/') that returns some
text when I hit the app URL.

Opening the link from reset email says "Cannot get "

Sorry for bothering you but I am struck at this point since many days.

Please let me know if the same issue is fixed in the new update or anything
else i need to add in my index.js for routes.
On 30-Mar-2016 1:04 am, "Drew" [email protected] wrote:

Closed #1260 #1260.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1260 (comment)

@drew-gross
Copy link
Contributor

Ah, that is a different issue. I'll reopen this.

@drew-gross drew-gross reopened this Mar 30, 2016
@flovilmart
Copy link
Contributor

There is two // can you remove the trailing slash in publicServerURL and see how it goes?

@djarunn
Copy link
Author

djarunn commented Mar 30, 2016

Hi @flovilmart , actually there is a APP ID between the slashes ,Mardown removed the APPID .I have modified the issue text.

This is the exact link I got in my email for password reset

https://mhomestest.herokuapp.com/apps/MAb3cyK4CGg5dnmx0kaA9hWEvmZZSFPdgdzKs4qT/request_password_reset?token=VImkgUdbApqRRYyRgBf8JXsh8&username=djarunn.as%40gmail.com

I was wondering how the app would know the routing to the page ,as we have not specified explicitly anywhere in the index.js of Parse Server Example ( PS : novice to express and node ,please excuse if sounds silly)

@drew-gross
Copy link
Contributor

I think you need to make sure you include your mount point in your publicServerURL

@djarunn
Copy link
Author

djarunn commented Mar 30, 2016

Thanks a lot Drew.

The problem was with variable "publicServerURL" .
It was set to my app domain : http://testmigrate2.herokuapp.com

Rather it should be : http://testmigrate2.herokuapp.com/parse , as we have mounted the parse server on /parse path.

I am able to reset my password successfully.

@djarunn djarunn closed this as completed Mar 30, 2016
@w3care25
Copy link

I am getting following error when trying to requestPasswordReset.
My Parse server version is : 1.0.0
{"level":"error","message":"Uncaught internal server error. [TypeError: promiseHandler(...).then is not a function] TypeError: promiseHandler(...).then is not a function\n at parse/node_modules/parse-server/lib/PromiseRouter.js:286:27\n

also email is not going.

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

4 participants