mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 04:21:05 -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);
|
var userTwoFactorEnabled = await _twoFactorIsEnabledQuery.TwoFactorIsEnabledAsync(user);
|
||||||
if (userTwoFactorEnabled)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ public class ConfirmOrganizationUserCommand : IConfirmOrganizationUserCommand
|
|||||||
{
|
{
|
||||||
if (userTwoFactorEnabled)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user