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

Add exception documentation for ValidateTwoFactorAuthenticationPolicyAsync method in ConfirmOrganizationUserCommand to clarify error handling for users without two-step login enabled.

This commit is contained in:
Rui Tome 2025-05-21 16:21:43 +01:00
parent f7771e13a5
commit 312f21d4bc
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -189,6 +189,7 @@ public class ConfirmOrganizationUserCommand : IConfirmOrganizationUserCommand
/// <param name="user">The user to validate the policy for.</param>
/// <param name="organizationId">The ID of the organization to validate the policy for.</param>
/// <param name="userTwoFactorEnabled">Whether the user has two-step login enabled.</param>
/// <exception cref="BadRequestException">Thrown if the user does not have two-step login enabled.</exception>
private async Task ValidateTwoFactorAuthenticationPolicyAsync(User user, Guid organizationId, bool userTwoFactorEnabled)
{
if (userTwoFactorEnabled)