Skip to content

Commit

Permalink
fix inverted logic for super duper top secret email check
Browse files Browse the repository at this point in the history
  • Loading branch information
GNUGradyn committed May 29, 2024
1 parent ffd8b2d commit 465a7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JournalyApiV2/Services/BLL/AuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public async Task CreateUser(string email, string password, string firstName, st
}

var newUser = await _userManager.FindByEmailAsync(email);
if (email.EndsWith(".test")) await VerifyEmail(Guid.Parse(newUser.Id), newUser.Email, newUser.FirstName, newUser.LastName);
if (!email.EndsWith(".test")) await VerifyEmail(Guid.Parse(newUser.Id), newUser.Email, newUser.FirstName, newUser.LastName);
}

public async Task ChangeName(string firstName, string lastName, Guid userId)
Expand Down

0 comments on commit 465a7b0

Please sign in to comment.