【问题标题】:parse password reset email解析密码重置电子邮件
【发布时间】:2016-07-25 17:09:14
【问题描述】:

我已将我们的解析服务器移动到 Elastic beanstalk 实例上,因此必须使用电子邮件适配器设置 mailgun 以发送密码重置。

我现在的问题是密码重置电子邮件提供的链接不起作用:

Cannot GET /apps/pvrdbvgDEY6K59NQ4TmoYuoKcy0SzCfp6gCGFGE0/request_password_reset?token=SDVc5xloR4OHmInFNEKXc7Wuz&username=testuser

代码

emailVerifyTokenValidityDuration: 2 * 60 * 60, // in seconds (2 hours = 7200 seconds)

preventLoginWithUnverifiedEmail: false, // defaults to false

publicServerURL: process.env.SERVER_URL || 'http://localhost:1337/parse',
appName: 'InStyle',

emailAdapter: {
    module: 'parse-server-simple-mailgun-adapter',
    options: {
        fromAddress: 'no-reply@domain.com',
        domain: 'domain.com',
        apiKey: 'key-EXAMPLE',
    }
}

【问题讨论】:

    标签: email parse-platform password-recovery


    【解决方案1】:

    您的代码没有错误。 它适用于当前的 Parse-server v.2.3.2。

    可能是您的process.env.SERVER_URL 没有/parse 路径?

    无论如何,解析服务器密码恢复的正确路径应该是: /parse/apps/[appId]/request_password_reset?token=[token generated by Parse]&username=[userName]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-26
      • 2012-03-09
      • 2015-11-26
      • 2017-01-25
      • 2020-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多