mirror of
https://github.com/bitwarden/server
synced 2025-12-10 21:33:41 +00:00
fix(two-factor-controller) [PM-24211]: Branching logic should return on successful send.
This commit is contained in:
@@ -357,6 +357,7 @@ public class TwoFactorController : Controller
|
|||||||
authRequest.IsValidForAuthentication(user.Id, requestModel.AuthRequestAccessCode))
|
authRequest.IsValidForAuthentication(user.Id, requestModel.AuthRequestAccessCode))
|
||||||
{
|
{
|
||||||
await _twoFactorEmailService.SendTwoFactorEmailAsync(user);
|
await _twoFactorEmailService.SendTwoFactorEmailAsync(user);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!string.IsNullOrEmpty(requestModel.SsoEmail2FaSessionToken))
|
else if (!string.IsNullOrEmpty(requestModel.SsoEmail2FaSessionToken))
|
||||||
|
|||||||
Reference in New Issue
Block a user