7 references to GenerateTwoFactorTokenAsync
IdentitySample.Mvc (1)
Controllers\AccountController.cs (1)
383var code = await _userManager.GenerateTwoFactorTokenAsync(user, model.SelectedProvider);
Microsoft.AspNetCore.Identity.Specification.Tests (5)
UserManagerSpecificationTests.cs (5)
1650token = await manager.GenerateTwoFactorTokenAsync(user, factorId); 1653var token2 = await manager.GenerateTwoFactorTokenAsync(user, factorId); 1691() => manager.GenerateTwoFactorTokenAsync(user, "bogus")); 1852var token = await manager.GenerateTwoFactorTokenAsync(user, factorId); 1869var token = await manager.GenerateTwoFactorTokenAsync(user, "Phone");
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
1457async () => await manager.GenerateTwoFactorTokenAsync(null, null));