开发者

Set profile Active/Inactive using ASP.NET Profiles

开发者 https://www.devze.com 2023-03-24 17:34 出处:网络
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

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

精彩评论

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