Skip to content

Commit

Permalink
test autosetting 3
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystianKempski committed Nov 11, 2024
1 parent 5f925a4 commit 6032aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DagoniteEmpire/Service/DbInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task Initialize()
await _jsRuntime.ToastrError("Could not get email or password from appisetting.json");
throw new Exception("Could not get email or passwword from appisetting.json");
}
if (_userManager.FindByEmailAsync(_configuration.GetConnectionString("GameMasterEmail")) is null )
if (_userManager.FindByEmailAsync(_configuration.GetConnectionString("GameMasterEmail")).Result is null)
{
var email = _configuration.GetConnectionString("GameMasterEmail");
if (email.IsNullOrEmpty())
Expand Down Expand Up @@ -110,7 +110,7 @@ public async Task Initialize()
}
if (_configuration.GetConnectionString("TestAccountsEnable") == "true")
{
if (_userManager.FindByEmailAsync("[email protected]") is null)
if (_userManager.FindByEmailAsync("[email protected]").Re is null)
{
ApplicationUser user = new()
{
Expand Down

0 comments on commit 6032aa3

Please sign in to comment.