title: MembershipUser isApproved not working
body: <p>I have tried solutions like here <a href="https://stackoverflow.com/questions/3052767/how-do-you-update-the-aspnetdb-membership-isapproved-value">How do you update the aspnetdb membership IsApproved value?</a>
  But it still doesn't work for me. isAprproved always passes true for new member.</p>
  
  <p>I am creating a member here:</p>
  
  <pre><code>MembershipUser member = Membership.Providers[providerAlias].CreateUser("aaa", password, email, null, null, false, null, out newStatus);
              Member.ChangeUsername("aaa", email);
              member.IsApproved = false;
              Membership.UpdateUser(member);
  </code></pre>
  
  <p>but still my new member can login.
  I am not using CreateUserWizard because I had lots of problems with it.</p>
  
  <p>I have my own registration form and create a member, then log him automatically to update the profile with the input values and log out.
  I;m not sure it makes any difference - some posts suggested it does but I need to login the member to save his profile data, don't I?</p>
  
  <p>Also, even if I deliberately change isApproved for existing member:</p>
  
  <pre><code>    MembershipUser user = Membership.GetUser(_currentProfile.UserName);
      if (user != null)
      {
          user.IsApproved = false;
          Membership.UpdateUser(user);
  
          Response.Write(user.IsApproved.ToString());
      }
  </code></pre>
  
  <p>it also doesn't change and stays always true.</p>
  
  <p>How can I update isApproved property so my member cannot login until his registration is validated by an admin?</p>
  
  <p>I am using Umbraco 6.</p>
  
  <p>Thank you</p>