Fix identity API changes in Startup.cs

This commit is contained in:
Hao Kung 2014-04-04 14:59:38 -07:00
parent 5bb8f602f1
commit 4d1bd6095b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class Startup
{
user = new ApplicationUser { UserName = _username };
await userManager.CreateAsync(user, _password);
await userManager.AddToRoleAsync(user.Id, _role);
await userManager.AddToRoleAsync(user, _role);
}
}
}