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