2016-11-14 86 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 
});