8 references to CountRecoveryCodesAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
49RecoveryCodesLeft = await _userManager.CountRecoveryCodesAsync(user);
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
303if (tfaRequest.ResetRecoveryCodes || (tfaRequest.Enable == true && await userManager.CountRecoveryCodesAsync(user) == 0)) 330RecoveryCodesLeft = recoveryCodes?.Length ?? await userManager.CountRecoveryCodesAsync(user),
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1761Assert.Equal(--numCodes, await manager.CountRecoveryCodesAsync(user));
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
149if (await _userManager.CountRecoveryCodesAsync(user) == 0)
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
87RecoveryCodesLeft = await _userManager.CountRecoveryCodesAsync(user);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
149if (await _userManager.CountRecoveryCodesAsync(user) == 0)
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
87RecoveryCodesLeft = await _userManager.CountRecoveryCodesAsync(user);