locked
Disabling sql membership user accounts RRS feed

  • Question

  • User-889640406 posted
    provider = Membership.Provider as MAMembershipProvider;  
    
              MembershipUser u = provider.GetUser(username, false); 
    
               u.IsApproved = enabled;  
    
              u.Email = "unspecified@testmorganash.c.com";    
    
            provider.UpdateUser(u);     
    
           string b = (enabled) ? "Re-enabled" : "Disabled";     
    
           return View(b);
    
    
    

    Is this the  recommended way of disablling a user account

    Wednesday, February 3, 2016 9:14 AM

Answers