From cb3e8d46890c1f1b7cd81e498d43f61b730b899f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Tr=C3=B8strup?= <8415722+Duckth@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:41:36 +0200 Subject: [PATCH] fix: Correct where clause in resend verification --- coffeecard/CoffeeCard.Library/Services/v2/AccountService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coffeecard/CoffeeCard.Library/Services/v2/AccountService.cs b/coffeecard/CoffeeCard.Library/Services/v2/AccountService.cs index 3be914a8..7bfdbd41 100644 --- a/coffeecard/CoffeeCard.Library/Services/v2/AccountService.cs +++ b/coffeecard/CoffeeCard.Library/Services/v2/AccountService.cs @@ -162,7 +162,7 @@ public Task EmailExistsAsync(string email) public async Task ResendAccountVerificationEmail(ResendAccountVerificationEmailRequest request) { var user = await _context.Users - .Where(u => u.Email.Equals(request.Email, StringComparison.OrdinalIgnoreCase)) + .Where(u => u.Email.ToLower().Equals(request.Email.ToLower())) .FirstOrDefaultAsync(); if (user == null)