16 references to SetTwoFactorEnabledAsync
Identity.ExternalClaims (3)
Pages\Account\Manage\Disable2fa.cshtml.cs (1)
53var disable2faResult = await _userManager.SetTwoFactorEnabledAsync(user, false);
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (1)
100await _userManager.SetTwoFactorEnabledAsync(user, true);
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (1)
47await _userManager.SetTwoFactorEnabledAsync(user, false);
IdentitySample.Mvc (2)
Controllers\ManageController.cs (2)
147await _userManager.SetTwoFactorEnabledAsync(user, true); 163await _userManager.SetTwoFactorEnabledAsync(user, false);
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
290await userManager.SetTwoFactorEnabledAsync(user, true); 294await userManager.SetTwoFactorEnabledAsync(user, false);
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1673IdentityResultAssert.IsSuccess(await manager.SetTwoFactorEnabledAsync(user, true));
Microsoft.AspNetCore.Identity.Test (2)
UserManagerTest.cs (2)
908Assert.ThrowsAsync<NotSupportedException>(async () => await manager.SetTwoFactorEnabledAsync(null, true)); 1119async () => await manager.SetTwoFactorEnabledAsync(null, true));
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (1)
74var disable2faResult = await _userManager.SetTwoFactorEnabledAsync(user, false);
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
143await _userManager.SetTwoFactorEnabledAsync(user, true);
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (1)
72await _userManager.SetTwoFactorEnabledAsync(user, false);
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (1)
74var disable2faResult = await _userManager.SetTwoFactorEnabledAsync(user, false);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
143await _userManager.SetTwoFactorEnabledAsync(user, true);
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (1)
72await _userManager.SetTwoFactorEnabledAsync(user, false);