2016-07-25 119 views
0

我已将我们的分析服务器移动到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: '[email protected]', 
     domain: 'domain.com', 
     apiKey: 'key-EXAMPLE', 
    } 
} 

回答

0

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

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

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