1 write to _userManager
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (1)
46
_userManager
= userManager;
6 references to _userManager
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (6)
52
var user = await
_userManager
.GetUserAsync(User);
55
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
58
if (!await
_userManager
.GetTwoFactorEnabledAsync(user))
68
var user = await
_userManager
.GetUserAsync(User);
71
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
74
var disable2faResult = await
_userManager
.SetTwoFactorEnabledAsync(user, false);