我正在使用 ASP.NET MVC 4 Web 应用程序,我正在尝试制作密码忘记页面。在我的 POST 中,我检查与密码相关的用户是否存在
WebSecurity.UserExists(email)
它返回true,但是当我执行时
WebSecurity.GeneratePasswordResetToken(email, 10);
我收到此错误
No account exists for *email*
作为参考,我正在关注本教程:http ://www.thecodingguys.net/tutorials/asp/webpages-membership-forgot-password-and-reset-password 。
有任何想法吗?