authenticationasp.net-mvc-4simplemembership

WebSecurity.GeneratePasswordResetToken returns error (but user exists!)


I'm working in an ASP.NET MVC 4 web app, I'm trying to make a password forget page. In my POST, I check that the user related to the password is present

WebSecurity.UserExists(email)

and it returns true, but when I exectue

WebSecurity.GeneratePasswordResetToken(email, 10);

I'm getting this error

No account exists for *email*

For reference, I was following this tutorial: http://www.thecodingguys.net/tutorials/asp/webpages-membership-forgot-password-and-reset-password.

Any ideas?


Solution

  • Solved, somehow in [webpages_Membership] table it wasn't present the confirmation for the user.