Skip to content

Commit

Permalink
Update Configure.Db.Migrations.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 16, 2023
1 parent f6ae978 commit 25b0b8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MyApp/Configure.Db.Migrations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void Configure(IWebHostBuilder builder) => builder

private async Task AddSeedUsers(IServiceProvider services)
{
var scopeFactory = services.GetRequiredService<IServiceScopeFactory>();

//initializing custom roles
var roleManager = services.GetRequiredService<RoleManager<IdentityRole>>();
var userManager = services.GetRequiredService<UserManager<ApplicationUser>>();
Expand Down Expand Up @@ -110,7 +108,7 @@ await EnsureUserAsync(new ApplicationUser
FirstName = "Test",
LastName = "Manager",
EmailConfirmed = true,
}, "p@55wOrd", [Roles.Manager]);
}, "p@55wOrd", [Roles.Manager, Roles.Employee]);

await EnsureUserAsync(new ApplicationUser
{
Expand Down

0 comments on commit 25b0b8b

Please sign in to comment.