From bf017360cde7e1489d08013ea4e4131d804b96ca Mon Sep 17 00:00:00 2001 From: slavapv <15075006+slavapv@users.noreply.github.com> Date: Thu, 2 Sep 2021 10:06:00 +0500 Subject: [PATCH] Update IdentitySeedData.cs Method typo (in the printed book on page 237). --- .../SportsSln/SportsStore/Models/IdentitySeedData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11 - SportsStore - Security & Deployment/End of Chapter/SportsSln/SportsStore/Models/IdentitySeedData.cs b/11 - SportsStore - Security & Deployment/End of Chapter/SportsSln/SportsStore/Models/IdentitySeedData.cs index b36ab85..6dd1955 100644 --- a/11 - SportsStore - Security & Deployment/End of Chapter/SportsSln/SportsStore/Models/IdentitySeedData.cs +++ b/11 - SportsStore - Security & Deployment/End of Chapter/SportsSln/SportsStore/Models/IdentitySeedData.cs @@ -23,7 +23,7 @@ public static async void EnsurePopulated(IApplicationBuilder app) { .CreateScope().ServiceProvider .GetRequiredService>(); - IdentityUser user = await userManager.FindByIdAsync(adminUser); + IdentityUser user = await userManager.FindByNameAsync(adminUser); if (user == null) { user = new IdentityUser("Admin"); user.Email = "admin@example.com";