Open 0xMF opened 9 years ago
I think I solved this issue for the given seeding values. At minimum, you'd need to initialize the database such that UserName have an email-style string that would be used at logon:
// Username must be an email-style string for Individual Accounts in Identity v2.1+
// otherwise you cannot login
var admin = new ApplicationUser();
admin.UserName = "admin@somewhere.ca";
admin.Email = "admin@somewhere.ca";
var adminresult = UserManager.Create(admin, password);
More testing would be needed for other changes but at least logging in via seeded values is possible now.
When creating a new Mvc5 webapp in VS2013 Update 4 with Individual User Accounts. The wizard generated IdentityConfig, AccountController, and ManageController are very different from this sample. This means the logic for seeding doesn't work.