1 write to _userManager
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
54
_userManager
= userManager;
7 references to _userManager
Microsoft.AspNetCore.Identity.UI (7)
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (7)
60
var user = await
_userManager
.GetUserAsync(User);
63
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
66
var isTwoFactorEnabled = await
_userManager
.GetTwoFactorEnabledAsync(user);
77
var user = await
_userManager
.GetUserAsync(User);
80
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
83
var isTwoFactorEnabled = await
_userManager
.GetTwoFactorEnabledAsync(user);
89
var recoveryCodes = await
_userManager
.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);