From 312f21d4bcb20a11715fbefeb191818d8e8e2945 Mon Sep 17 00:00:00 2001 From: Rui Tome Date: Wed, 21 May 2025 16:21:43 +0100 Subject: [PATCH] Add exception documentation for ValidateTwoFactorAuthenticationPolicyAsync method in ConfirmOrganizationUserCommand to clarify error handling for users without two-step login enabled. --- .../OrganizationUsers/ConfirmOrganizationUserCommand.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs index af49baf729..fb10332dcc 100644 --- a/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs +++ b/src/Core/AdminConsole/OrganizationFeatures/OrganizationUsers/ConfirmOrganizationUserCommand.cs @@ -189,6 +189,7 @@ public class ConfirmOrganizationUserCommand : IConfirmOrganizationUserCommand /// The user to validate the policy for. /// The ID of the organization to validate the policy for. /// Whether the user has two-step login enabled. + /// Thrown if the user does not have two-step login enabled. private async Task ValidateTwoFactorAuthenticationPolicyAsync(User user, Guid organizationId, bool userTwoFactorEnabled) { if (userTwoFactorEnabled)