21 references to GetTwoFactorEnabledAsync
Identity.ExternalClaims (2)
Pages\Account\Manage\Disable2fa.cshtml.cs (1)
37if (!await _userManager.GetTwoFactorEnabledAsync(user))
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
48Is2faEnabled = await _userManager.GetTwoFactorEnabledAsync(user);
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
55TwoFactor = await _userManager.GetTwoFactorEnabledAsync(user),
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
329IsTwoFactorEnabled = await userManager.GetTwoFactorEnabledAsync(user),
SignInManager.cs (1)
807await UserManager.GetTwoFactorEnabledAsync(user) &&
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1675Assert.True(await manager.GetTwoFactorEnabledAsync(user));
Microsoft.AspNetCore.Identity.Test (7)
SignInManagerTest.cs (5)
208manager.Setup(m => m.GetTwoFactorEnabledAsync(user)).ReturnsAsync(true).Verifiable(); 277manager.Setup(m => m.GetTwoFactorEnabledAsync(user)).ReturnsAsync(true).Verifiable(); 315manager.Setup(m => m.GetTwoFactorEnabledAsync(user)).ReturnsAsync(true).Verifiable(); 484manager.Setup(m => m.GetTwoFactorEnabledAsync(user)).ReturnsAsync(userTwoFactorEnabled).Verifiable(); 779manager.Setup(m => m.GetTwoFactorEnabledAsync(user)).ReturnsAsync(true).Verifiable();
UserManagerTest.cs (2)
906await Assert.ThrowsAsync<NotSupportedException>(async () => await manager.GetTwoFactorEnabledAsync(null)); 1117async () => await manager.GetTwoFactorEnabledAsync(null));
Microsoft.AspNetCore.Identity.UI (8)
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (1)
58if (!await _userManager.GetTwoFactorEnabledAsync(user))
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
66var isTwoFactorEnabled = await _userManager.GetTwoFactorEnabledAsync(user); 83var isTwoFactorEnabled = await _userManager.GetTwoFactorEnabledAsync(user);
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
85Is2faEnabled = await _userManager.GetTwoFactorEnabledAsync(user);
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (1)
58if (!await _userManager.GetTwoFactorEnabledAsync(user))
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
66var isTwoFactorEnabled = await _userManager.GetTwoFactorEnabledAsync(user); 83var isTwoFactorEnabled = await _userManager.GetTwoFactorEnabledAsync(user);
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
85Is2faEnabled = await _userManager.GetTwoFactorEnabledAsync(user);