1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00

Update comments in AcceptOrgUserCommand and ConfirmOrganizationUserCommand to clarify handling of two-step login and 2FA policy checks.

This commit is contained in:
Rui Tome 2025-05-21 17:26:31 +01:00
parent 312f21d4bc
commit 73c6af96b4
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066
2 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ public class AcceptOrgUserCommand : IAcceptOrgUserCommand
var userTwoFactorEnabled = await _twoFactorIsEnabledQuery.TwoFactorIsEnabledAsync(user);
if (userTwoFactorEnabled)
{
// If the user has two-step login enabled, the policy is not enforced.
// If the user has two-step login enabled, we skip checking the 2FA policies
return;
}

View File

@ -194,7 +194,7 @@ public class ConfirmOrganizationUserCommand : IConfirmOrganizationUserCommand
{
if (userTwoFactorEnabled)
{
// If the user has two-step login enabled, the policy is not enforced.
// If the user has two-step login enabled, we skip checking the 2FA policies
return;
}