SimpleMembership updating the "isconfirmed" flag

Posted by Vijay V on Stack Overflow See other posts from Stack Overflow or by Vijay V
Published on 2012-10-10T21:33:57Z Indexed on 2012/10/10 21:36 UTC
Read the original article Hit count: 210

My Users table (the one that I created) has the following columns:

UserId,UserName,FirstName,LastName,DOB

After I ran this command

WebSecurity.InitializeDatabaseConnection("DefaultConnection", "Users", "UserId", "UserName", autoCreateTables: true);

it created the required simple membership tables for me.

How would I go about "UnConfirming" an user or setting the "IsConfirmed" flag to false in the webpages_Membership using the new SimpleMembership API?

(Earlier, before going to simplemembership using the "Membership" class I could update an user using the api call : Membership.UpdateUser( user );)

© Stack Overflow or respective owner

Related posts about asp.net-mvc-4

Related posts about web-security