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