title: Cannot login on ASP.NET Identity 2 site after programmatic user creation
body: <p>I have a new <strong>MVC 5</strong> razor, <strong>EF 6</strong> web application using <strong>ASP.NET Identity 2</strong> for the <em>membership</em> system. When I create the users manually using the Register link on the web page, it goes fine. I can create the user, I can then login with the given password and then logout.</p>
  
  <p>I don't know how to use the database initializer with migration for Identity 2, there are countless examples with Identity 1 and other alpha and beta versions which only serve to confuse people. Since I don't know that yet, I use a temporary MVC view to install the membership.</p>
  
  <p>I see the the view executes properly, I see the <em>users and roles as well as the associations of users with roles in the database</em>. I also see that the users have a hashed password in the record.</p>
  
  <p>However, after doing that <em>I cannot login to the identity system (local) with the plain text passwords</em> I used in the Create method, why? BTW I have omitted the try/catch and checks for user and role creations (they execute without error).</p>
  
  <pre><code>DbContext ctx = ApplicationDbContext.Create();
  transaction = ctx.Database.BeginTransaction();
  RoleManager&lt;IdentityRole&gt; roleManager = new RoleManager&lt;IdentityRole&gt;(new RoleStore&lt;IdentityRole&gt;(ctx));
  var roleAdmin = roleManager.Create(new IdentityRole("Admin"));
  
  var userManager = new UserManager&lt;ApplicationUser&gt;(new UserStore&lt;ApplicationUser&gt;(ctx));
  ApplicationUser userAdmin = new ApplicationUser { Id = "admin", Email = "me@there.com", UserName = "admin" };
              userManager.Create(userAdmin, "Test_2013");
  userManager.AddToRole(userAdmin.Id, "Admin");
  userManager.Update(userAdmin);
  
  transaction.Commit(); 
  </code></pre>
  
  <p>So after that if I attempt to login to the account with the email address and the Test_2013 password I get an error indicating the username/password is incorrect.</p>