1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 15:53:59 +00:00

Add dedicated functions instead of updating existing

This commit is contained in:
Hinton
2025-10-09 09:59:14 -07:00
parent 185fbd04c6
commit 12ad758f72
5 changed files with 52 additions and 35 deletions

View File

@@ -37,9 +37,8 @@ public class Program
using var scope = serviceProvider.CreateScope();
var scopedServices = scope.ServiceProvider;
var db = scopedServices.GetRequiredService<DatabaseContext>();
var passwordHasher = scopedServices.GetRequiredService<IPasswordHasher<User>>();
var recipe = new OrganizationWithUsersRecipe(db, passwordHasher);
var recipe = new OrganizationWithUsersRecipe(db);
recipe.Seed(name, users, domain);
}
}