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:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user