test user name

This commit is contained in:
Tizian.Breuch
2025-07-23 13:49:20 +02:00
parent 962207a43f
commit d20a6d6ae6
2 changed files with 99 additions and 3 deletions

View File

@@ -152,13 +152,13 @@ using (var scope = app.Services.CreateScope())
}
// Erstelle einen initialen Admin-Benutzer
var adminUser = await userManager.FindByEmailAsync("user@example.com"); // << ANPASSEN >>
var adminUser = await userManager.FindByEmailAsync("admin-user@example.com"); // << ANPASSEN >>
if (adminUser == null)
{
adminUser = new IdentityUser
{
UserName = "user@example.com", // << ANPASSEN >>
Email = "user@example.com", // << ANPASSEN >>
UserName = "admin-user@example.com", // << ANPASSEN >>
Email = "admin-user@example.com", // << ANPASSEN >>
EmailConfirmed = true
};
var createAdmin = await userManager.CreateAsync(adminUser, "string"); // << ANPASSEN >>