1 write to _userManager
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
29
_userManager
= userManager;
21 references to _userManager
IdentitySample.Mvc (21)
Controllers\ManageController.cs (21)
53
HasPassword = await
_userManager
.HasPasswordAsync(user),
54
PhoneNumber = await
_userManager
.GetPhoneNumberAsync(user),
55
TwoFactor = await
_userManager
.GetTwoFactorEnabledAsync(user),
56
Logins = await
_userManager
.GetLoginsAsync(user),
58
AuthenticatorKey = await
_userManager
.GetAuthenticatorKeyAsync(user)
73
var result = await
_userManager
.RemoveLoginAsync(user, account.LoginProvider, account.ProviderKey);
102
var code = await
_userManager
.GenerateChangePhoneNumberTokenAsync(user, model.PhoneNumber);
116
await
_userManager
.ResetAuthenticatorKeyAsync(user);
131
var codes = await
_userManager
.GenerateNewTwoFactorRecoveryCodesAsync(user, 5);
147
await
_userManager
.SetTwoFactorEnabledAsync(user, true);
163
await
_userManager
.SetTwoFactorEnabledAsync(user, false);
175
var code = await
_userManager
.GenerateChangePhoneNumberTokenAsync(await GetCurrentUserAsync(), phoneNumber);
193
var result = await
_userManager
.ChangePhoneNumberAsync(user, model.PhoneNumber, model.Code);
214
var result = await
_userManager
.SetPhoneNumberAsync(user, null);
245
var result = await
_userManager
.ChangePasswordAsync(user, model.OldPassword, model.NewPassword);
280
var result = await
_userManager
.AddPasswordAsync(user, model.NewPassword);
306
var userLogins = await
_userManager
.GetLoginsAsync(user);
325
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl,
_userManager
.GetUserId(User));
339
var info = await _signInManager.GetExternalLoginInfoAsync(await
_userManager
.GetUserIdAsync(user));
344
var result = await
_userManager
.AddLoginAsync(user, info);
373
return
_userManager
.GetUserAsync(HttpContext.User);