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)
1649
token = await manager.
GenerateTwoFactorTokenAsync
(user, factorId);
1652
var token2 = await manager.
GenerateTwoFactorTokenAsync
(user, factorId);
1690
() => manager.
GenerateTwoFactorTokenAsync
(user, "bogus"));
1851
var token = await manager.
GenerateTwoFactorTokenAsync
(user, factorId);
1868
var token = await manager.
GenerateTwoFactorTokenAsync
(user, "Phone");
Microsoft.AspNetCore.Identity.Test (1)
UserManagerTest.cs (1)
1121
async () => await manager.
GenerateTwoFactorTokenAsync
(null, null));