1 write to _userManager
Identity.ExternalClaims (1)
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (1)
34
_userManager
= userManager;
9 references to _userManager
Identity.ExternalClaims (9)
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (9)
57
var user = await
_userManager
.GetUserAsync(User);
60
throw new ApplicationException($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
66
await
_userManager
.ResetAuthenticatorKeyAsync(user);
75
var user = await
_userManager
.GetUserAsync(User);
78
throw new ApplicationException($"Unable to load user with ID '{
_userManager
.GetUserId(User)}'.");
90
var is2faTokenValid = await
_userManager
.VerifyTwoFactorTokenAsync(
91
user,
_userManager
.Options.Tokens.AuthenticatorTokenProvider, verificationCode);
100
await
_userManager
.SetTwoFactorEnabledAsync(user, true);
108
var unformattedKey = await
_userManager
.GetAuthenticatorKeyAsync(user);