1
0
mirror of https://github.com/bitwarden/server synced 2025-12-06 00:03:34 +00:00

fix(two-factor-controller) [PM-24211]: Branching logic should return on successful send.

This commit is contained in:
enmande
2025-12-05 11:43:37 -05:00
parent 1f85df17b7
commit ca1a8c7cd0

View File

@@ -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))