Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku customPages url不适用于解析服务器密码重置_Heroku_Parse Platform_Parse Server - Fatal编程技术网

Heroku customPages url不适用于解析服务器密码重置

Heroku customPages url不适用于解析服务器密码重置,heroku,parse-platform,parse-server,Heroku,Parse Platform,Parse Server,我在Heroku上安装了解析服务器,并使用emailAdapter进行Mailgun集成。我的电子邮件发送正常,但链接工作不正常。据我所知,应该将用户定向到customPages中定义的链接。相反,用户被引导到: 请参阅下文以供参考 publicServerURL: 'https://url.com/parse', appName: 'My App', emailAdapter: { module: 'parse-server-simple-mailgun-adapter',

我在Heroku上安装了解析服务器,并使用emailAdapter进行Mailgun集成。我的电子邮件发送正常,但链接工作不正常。据我所知,应该将用户定向到customPages中定义的链接。相反,用户被引导到:

请参阅下文以供参考

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'

}

用户将被发送到您的“publicServerURL/parse/apps/…”,然后重定向到“chooseSpassword”url

我不明白的一点是,您的ChooseSPassword似乎与解析服务器托管在同一个域上,除非您使用的是同一个示例域。我希望有这样的情况:

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与https。

您可以检查文档。我在尝试设置自定义页面时遇到问题,我尝试了这个,它对我有效

{
“自定义页面”:{
“无效链接”:https://.b4a.app/invalid_link.html",
“verifyEmailSuccess”:https://.b4a.app/verify_email_success.html",
“选择密码”:https://.b4a.app/choose_password.html", 
“passwordResetSuccess”:https://.b4a.app/password_reset_success.html",
“invalidVerificationLink”:https://.b4a.app/invalid_verification_link.html",
“linkSendFail”:https://.b4a.app/link_send_fail.html",
“linkSendSuccess”:https://.b4a.app/link_send_success.html"
}
}
在运行parse server的index.js中,检查配置中的“公共服务器url”