WebSecurity.CreateUserAndAccount使用NULL密码插入记录?

时间:2014-10-02 09:36:23

标签: asp.net-mvc-4 forms-authentication

我在MVC 4项目中使用基本表单身份验证。当我尝试使用 CreateUserAndAccount ()方法创建新用户时,它会在我的配置文件表(DB:SQL Server)中创建一条记录,但密码默认为null。我甚至尝试使用WebSecurity更新密码。 ChangePassword ()和WebSecurity。 GeneratePasswordResetToken ()+ WebSecurity。 ResetPassword ()方法没有运气。

以前是否有人遇到此问题?

感谢您的时间。 问候, Arvind的

1 个答案:

答案 0 :(得分:0)

我在配置文件表中查找密码,而它存储在webpages_Membership表中。

答案:Why is WebSecurity ignoring my password?