我在Heroku上设置了Parse服务器,我正在使用emailAdapter进行Mailgun集成。我正确发送电子邮件,但链接无法正常工作。据我所知,用户应该被定向到customPages中定义的链接。相反,用户被指示: https://url.com/parse/apps/my-parse-app-id/request_password_reset?token=WVu39ZyNsPWOA7dbF4h6386bE&username=emailaddress%40yahoo.com
请参阅以下内容以供参考
publicServerURL: 'https://url.com/parse',
appName: 'My App',
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
fromAddress: 'noreply@url.com',
domain: 'mg.url.com',
apiKey: 'key-mykey',
}
},
customPages: {
invalidLink: 'http://url.com/link_invalid',
verifyEmailSuccess: 'http://url.com/verify_email_success',
choosePassword: 'https://url.com/choose_password',
passwordResetSuccess: 'http://url.com/sucess'
}
答案 0 :(得分:1)
您可以查看文档 here 我在尝试设置自定义页面时遇到了问题,我尝试了此方法并且对我有用
{
"customPages": {
"invalidLink":"https://<subdomain>.b4a.app/invalid_link.html",
"verifyEmailSuccess":"https://<subdomain>.b4a.app/verify_email_success.html",
"choosePassword":"https://<subdomain>.b4a.app/choose_password.html",
"passwordResetSuccess":"https://<subdomain>.b4a.app/password_reset_success.html",
"invalidVerificationLink":"https://<subdomain>.b4a.app/invalid_verification_link.html",
"linkSendFail":"https://<subdomain>.b4a.app/link_send_fail.html",
"linkSendSuccess":"https://<subdomain>.b4a.app/link_send_success.html"
}
}
答案 1 :(得分:0)
用户将被发送到您的&#34; publicServerURL / parse / apps /..." ,然后重定向到&#34; choosePassword &#34;网址。
我不明白的一件事是,您的choosePassword似乎与您的解析服务器托管在同一个域中,除非您使用相同的示例域。我希望有类似的东西:
publicServerURL: 'https://serverurl.com/parse',
...
customPages: {
invalidLink: 'http://url.com/link_invalid',
verifyEmailSuccess: 'http://url.com/verify_email_success',
choosePassword: 'https://url.com/choose_password',
passwordResetSuccess: 'http://url.com/sucess'
}
您可能想要检查的另一件事是您的customPages中的http vs https。