From ca1a8c7cd0a107d66a1d38f29531ccf50bdfe130 Mon Sep 17 00:00:00 2001 From: enmande <3836813+enmande@users.noreply.github.com> Date: Fri, 5 Dec 2025 11:43:37 -0500 Subject: [PATCH] fix(two-factor-controller) [PM-24211]: Branching logic should return on successful send. --- src/Api/Auth/Controllers/TwoFactorController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Api/Auth/Controllers/TwoFactorController.cs b/src/Api/Auth/Controllers/TwoFactorController.cs index 15e942c719..8ed4cd3b47 100644 --- a/src/Api/Auth/Controllers/TwoFactorController.cs +++ b/src/Api/Auth/Controllers/TwoFactorController.cs @@ -357,6 +357,7 @@ public class TwoFactorController : Controller authRequest.IsValidForAuthentication(user.Id, requestModel.AuthRequestAccessCode)) { await _twoFactorEmailService.SendTwoFactorEmailAsync(user); + return; } } else if (!string.IsNullOrEmpty(requestModel.SsoEmail2FaSessionToken))