Fix identity API changes in Startup.cs
This commit is contained in:
parent
5bb8f602f1
commit
4d1bd6095b
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue