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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user