首页 > 其他 > 详细

遇到了个问题

时间:2019-09-17 13:44:48      阅读:105      评论:0      收藏:0      [点我收藏+]

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>

遇到了个问题

原文:https://www.cnblogs.com/dm521/p/11532880.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!