2016-11-14 76 views
1

我想用我的应用程序实现我自己的本地解析服务器。除了为用户重新设置密码之外,一切工作都正常。解析服务器:重置密码

我收到以下错误

(node:8729) UnhandledPromiseRejectionWarning: Unhandledpromiserejection 
(rejection id: 2): Error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 
<title>404 Not Found</title><h1>Not Found</h1><p>The requested URL was not found on 
the server.</p> 
<p>If you entered the URL manually please check your spelling and try again.</p> 
+0

你有没有得到这个解决?我有同样的问题。 –

回答

0

你已经在index.js配置了电子邮件适配器?按照文件,

电子邮件验证和密码重置

验证用户的电子邮件地址,并通过电子邮件启用密码重置需要一个电子邮件适配器。作为parse-server包的一部分,我们提供了一个通过Mailgun发送电子邮件的适配器。要使用它,报名参加Mailgun,并添加到您的初始化代码:

var server = ParseServer({ 
    ...otherOptions, 

    // Your apps name. This will appear in the subject and body of the emails that are sent. 
    appName: 'Parse App', 

    // The email adapter 
    emailAdapter: { 
     module: 'parse-server-simple-mailgun-adapter', 
     options: { 
      // The address that your emails come from 
      fromAddress: '[email protected]', 
      // Your domain from mailgun.com 
      domain: 'example.com', 
      // Your API key from mailgun.com 
      apiKey: 'key-mykey', 
     } 
    }, 

    ...otherOptions 
});