1 write to _userManager
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
98_userManager = userManager;
14 references to _userManager
Microsoft.AspNetCore.Identity.UI (14)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (14)
105var user = await _userManager.GetUserAsync(User); 108return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 118var user = await _userManager.GetUserAsync(User); 121return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 133var is2faTokenValid = await _userManager.VerifyTwoFactorTokenAsync( 134user, _userManager.Options.Tokens.AuthenticatorTokenProvider, verificationCode); 143await _userManager.SetTwoFactorEnabledAsync(user, true); 144await _userManager.GetUserIdAsync(user); 149if (await _userManager.CountRecoveryCodesAsync(user) == 0) 151var recoveryCodes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(user, 10); 164var unformattedKey = await _userManager.GetAuthenticatorKeyAsync(user); 167await _userManager.ResetAuthenticatorKeyAsync(user); 168unformattedKey = await _userManager.GetAuthenticatorKeyAsync(user); 173var email = await _userManager.GetEmailAsync(user);