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:
parent
312f21d4bc
commit
73c6af96b4
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user