遇到了個問題

nginx 反向代理後,服務器生成的郵件驗證碼,不匹配的問題。

參考資料:http://www.gunaatita.com/Blog/Invalid-Token-Error-on-Email-Confirmation-in-Aspnet-Identity/1056

Reason #2 : The Confirmation token (UserManager.GenerateEmailConfirmationToken) is generated on one server and the mail confirmation code is on another server.

Solution : As confirmation token is generated using machine key and security stamp, so the machine key should be consistent on both server. So add same machineKey under system.web in configuration file of both the application as below:

<system.web>

</system.web>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章