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