Skip to content

Commit

Permalink
Merge branch '1.2.34-pre' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
peterliapin committed Jan 20, 2025
2 parents ef8d3bc + 08db3c9 commit c3460d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OnlineSales/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ public static async Task CreateDefaultIdentity(IServiceScope scope)
EmailConfirmed = true,
};

if (await userManager.FindByEmailAsync(user.Email) == null)
var existingUser = await userManager.FindByEmailAsync(user.Email);

if (existingUser == null)
{
var result = await userManager.CreateAsync(user, defaultUser.Password);

Expand Down

0 comments on commit c3460d4

Please sign in to comment.