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

Invalid Link with password reset #1549

Closed
ghost opened this issue Apr 19, 2016 · 5 comments
Closed

Invalid Link with password reset #1549

ghost opened this issue Apr 19, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2016

I have been having issues with the emailAdapter. I have it configures using the maligun with my sample code as below

var api = new ParseServer({
    databaseURI: '',
    cloud: './cloud/main.js', // Provide an absolute path
    appId: 'XXXXXXXXXXXXX',
    masterKey: 'XXXXXXXXXXXXX',
    push: {...},
    fileKey: 'xxx-x-xx-xxx-xx-xxxx,
    serverURL: 'https://someserveron.herokuapp.com/parse',
    appName: 'mytoddlr',
    verifyUserEmails: true,
    publicServerURL: 'https://someserveron.herokuapp.com/parse',
    emailAdapter: {
        module: 'parse-server-simple-mailgun-adapter',
        options: {
             apiKey: 'key-some-key-value',
             domain: 'sandbox.mailgun.org',
             fromAddress: 'no-reply@domain.com'
             }
    }
});

The reset password email get sent get called but on clicking on the mail. All i get is a an invalid link result.
Same also for the account verification email that is sent to the user on signup.

I have been having this issues for the past couples of days now and i just tried testing with the v2.2.7 of the parse-server but still not luck.

Is my implementation wrong or is their something am missing.

@drew-gross
Copy link
Contributor

Probably you are missing something. Make sure you aren't using any path rewriting anywhere. If you check that and still have issues, post the request body and response from the server when you click the link.

@ghost
Copy link
Author

ghost commented Apr 20, 2016

Thanks @drew-gross. Apparently, the error was cause by some path related issues.
Fixed it now. Thanks

@ghost ghost closed this as completed Apr 20, 2016
@ksrajput
Copy link

@ribads , what you do for fix this error, im getting still same error

@ghost
Copy link
Author

ghost commented Apr 28, 2016

@ksrajput I was able to resolve the issues after realigning my URL i.e serverURL and publicServerURL.
Testing was a bit of a challenge. Apparently my password reset was sent locally referencing remote URI that wasn't live on the remote server.

@ksrajput
Copy link

@ribads thanks a lot buddy:)

This issue was closed.
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

2 participants