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)
105
var user = await
_userManager
.GetUserAsync(User);
108
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
118
var user = await
_userManager
.GetUserAsync(User);
121
return NotFound($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
133
var is2faTokenValid = await
_userManager
.VerifyTwoFactorTokenAsync(
134
user,
_userManager
.Options.Tokens.AuthenticatorTokenProvider, verificationCode);
143
await
_userManager
.SetTwoFactorEnabledAsync(user, true);
144
await
_userManager
.GetUserIdAsync(user);
149
if (await
_userManager
.CountRecoveryCodesAsync(user) == 0)
151
var recoveryCodes = await
_userManager
.GenerateNewTwoFactorRecoveryCodesAsync(user, 10);
164
var unformattedKey = await
_userManager
.GetAuthenticatorKeyAsync(user);
167
await
_userManager
.ResetAuthenticatorKeyAsync(user);
168
unformattedKey = await
_userManager
.GetAuthenticatorKeyAsync(user);
173
var email = await
_userManager
.GetEmailAsync(user);