1 write to UserManager
Microsoft.AspNetCore.Identity (1)
SignInManager.cs (1)
52
UserManager
= userManager;
43 references to UserManager
Microsoft.AspNetCore.Identity (41)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
264
var userManager = signInManager.
UserManager
;
SignInManager.cs (40)
33
/// <param name="userManager">An instance of <see cref="
UserManager
"/> used to retrieve users from and persist users.</param>
138
if (Options.SignIn.RequireConfirmedEmail && !(await
UserManager
.IsEmailConfirmedAsync(user)))
143
if (Options.SignIn.RequireConfirmedPhoneNumber && !(await
UserManager
.IsPhoneNumberConfirmedAsync(user)))
148
if (Options.SignIn.RequireConfirmedAccount && !(await _confirmation.IsConfirmedAsync(
UserManager
, user)))
278
var user = await
UserManager
.GetUserAsync(principal);
301
var user = await
UserManager
.FindByIdAsync(principal.Identity.Name);
320
(!
UserManager
.SupportsUserSecurityStamp || securityStamp == await
UserManager
.GetSecurityStampAsync(user));
356
var user = await
UserManager
.FindByNameAsync(userName);
384
if (await
UserManager
.CheckPasswordAsync(user, password))
404
if (
UserManager
.SupportsUserLockout && lockoutOnFailure)
407
var incrementLockoutResult = await
UserManager
.AccessFailedAsync(user) ?? IdentityResult.Success;
414
if (await
UserManager
.IsLockedOutAsync(user))
438
var userId = await
UserManager
.GetUserIdAsync(user);
479
var result = await
UserManager
.RedeemTwoFactorRecoveryCodeAsync(twoFactorInfo.User, recoveryCode);
549
if (await
UserManager
.VerifyTwoFactorTokenAsync(user, Options.Tokens.AuthenticatorTokenProvider, code))
554
if (
UserManager
.SupportsUserLockout)
556
var incrementLockoutResult = await
UserManager
.AccessFailedAsync(user) ?? IdentityResult.Success;
564
if (await
UserManager
.IsLockedOutAsync(user))
596
if (await
UserManager
.VerifyTwoFactorTokenAsync(user, provider, code))
601
if (
UserManager
.SupportsUserLockout)
603
var incrementLockoutResult = await
UserManager
.AccessFailedAsync(user) ?? IdentityResult.Success;
611
if (await
UserManager
.IsLockedOutAsync(user))
657
var user = await
UserManager
.FindByLoginAsync(loginProvider, providerKey);
731
var user = await
UserManager
.FindByLoginAsync(externalLogin.LoginProvider, externalLogin.ProviderKey);
739
var result = await
UserManager
.SetAuthenticationTokenAsync(user, externalLogin.LoginProvider, token.Name, token.Value);
787
var userId = await
UserManager
.GetUserIdAsync(user);
790
if (
UserManager
.SupportsUserSecurityStamp)
792
var stamp = await
UserManager
.GetSecurityStampAsync(user);
806
=>
UserManager
.SupportsUserTwoFactor &&
807
await
UserManager
.GetTwoFactorEnabledAsync(user) &&
808
(await
UserManager
.GetValidTwoFactorProvidersAsync(user)).Count > 0;
836
var userId = await
UserManager
.GetUserIdAsync(user);
878
var user = await
UserManager
.FindByIdAsync(userId);
898
return
UserManager
.SupportsUserLockout && await
UserManager
.IsLockedOutAsync(user);
937
if (
UserManager
.SupportsUserLockout)
940
var result = await
UserManager
.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success;
954
if (!
UserManager
.SupportsUserLockout)
959
return await
UserManager
.ResetAccessFailedCountAsync(user) ?? IdentityResult.Success;
Microsoft.AspNetCore.Identity.Test (2)
SignInManagerTest.cs (2)
1339
if (
UserManager
.SupportsUserLockout)
1341
return
UserManager
.ResetAccessFailedCountAsync(user);