开发者

Set profile Active/Inactive using ASP.NET Profiles

Using the built-in ASP.NET Web Profi开发者_开发知识库les, how do I create a user account that is Inactive (i.e., Active == false) and then later (for example, after sending the user an activation link in an e-mail) set their profile to Active?

Thanks, Jay


Take a look at the IsApproved property of the MembershipUserclass here.

If IsApproved is set to false, validation for the user will fail even if the the username and password are correct.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜