Today I noticed that new MVC projects in VS 2012 are using WebMatrix.WebData.WebSecurity to handle membership related tasks.
I went to msdn to a quick look at the documentation and was surprised. Lot's of good stuff in there and it will definitely save me a lot of time in future projects.
But one thing got my attention: It doesn't have a function to "Remove Accounts". Is there a particular reason for that? Should I use the underlying membership provider to remove accounts (and other things such as unlock accounts)?
((SimpleMembershipProvider)Membership.Provider).DeleteAccount("username");
((SimpleMembershipProvider)Membership.Provider).DeleteUser("username", true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With