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

fix(two-factor-controller) [PM-24211]: Update some comments (clarification/naming).

This commit is contained in:
enmande
2025-12-05 15:12:29 -05:00
parent 09de3e8333
commit 427a0cfeeb

View File

@@ -349,7 +349,8 @@ public class TwoFactorController : Controller
if (user != null) if (user != null)
{ {
// Check if 2FA email is from Passwordless. // Check if 2FA email is from a device approval ("Log in with device") scenario.
// 2FA is required for an unknown device.
if (!string.IsNullOrEmpty(requestModel.AuthRequestAccessCode)) if (!string.IsNullOrEmpty(requestModel.AuthRequestAccessCode))
{ {
var authRequest = await _authRequestRepository.GetByIdAsync(new Guid(requestModel.AuthRequestId)); var authRequest = await _authRequestRepository.GetByIdAsync(new Guid(requestModel.AuthRequestId));