11 references to GenerateNewTwoFactorRecoveryCodesAsync
Identity.ExternalClaims (1)
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
44var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
131var codes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 5);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
305var recoveryCodesEnumerable = await userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
Microsoft.AspNetCore.Identity.Specification.Tests (3)
UserManagerSpecificationTests.cs (3)
1754var newCodes = await manager.GenerateNewTwoFactorRecoveryCodesAsync(user, numCodes); 1782var newCodes = await manager.GenerateNewTwoFactorRecoveryCodesAsync(user, numCodes); 1784var realCodes = await manager.GenerateNewTwoFactorRecoveryCodesAsync(user, numCodes);
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
965await VerifyException<NotSupportedException>(async () => await manager.GenerateNewTwoFactorRecoveryCodesAsync(null, 10), error);
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
151var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
89var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
151var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
89var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);