Table of Contents

Class AdminUserManager

Namespace
Kentico.Membership
Assembly
Kentico.Membership.dll
public class AdminUserManager : UserManager<AdminApplicationUser>
Inheritance
object
AdminUserManager
Extension Methods

Constructors

AdminUserManager(IUserStore<AdminApplicationUser>, IOptionsSnapshot<AdminIdentityOptions>, IPasswordHasher<AdminApplicationUser>, IEnumerable<IUserValidator<AdminApplicationUser>>, IEnumerable<IPasswordValidator<AdminApplicationUser>>, ILookupNormalizer, IdentityErrorDescriber, IServiceProvider, ILogger<AdminUserManager>, IDataProtectionProvider, ILogger<DataProtectorTokenProvider<AdminApplicationUser>>)

Creates a new instance of the AdminUserManager class.

public AdminUserManager(IUserStore<AdminApplicationUser> store, IOptionsSnapshot<AdminIdentityOptions> optionsAccessor, IPasswordHasher<AdminApplicationUser> passwordHasher, IEnumerable<IUserValidator<AdminApplicationUser>> userValidators, IEnumerable<IPasswordValidator<AdminApplicationUser>> passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger<AdminUserManager> logger, IDataProtectionProvider dataProtectionProvider, ILogger<DataProtectorTokenProvider<AdminApplicationUser>> dataProtectionLogger)

Parameters

store IUserStore<AdminApplicationUser>
optionsAccessor IOptionsSnapshot<AdminIdentityOptions>
passwordHasher IPasswordHasher<AdminApplicationUser>
userValidators IEnumerable<IUserValidator<AdminApplicationUser>>
passwordValidators IEnumerable<IPasswordValidator<AdminApplicationUser>>
keyNormalizer ILookupNormalizer
errors IdentityErrorDescriber
services IServiceProvider
logger ILogger<AdminUserManager>
dataProtectionProvider IDataProtectionProvider
dataProtectionLogger ILogger<DataProtectorTokenProvider<AdminApplicationUser>>

Methods

AddPasswordAsync(AdminApplicationUser, string)

Adds the password to the specified user. User has to be instate of pending registration which is represented by UserIsPendingRegistration

public override Task<IdentityResult> AddPasswordAsync(AdminApplicationUser user, string password)

Parameters

user AdminApplicationUser

The user whose password should be set.

password string

The password to set.

Returns

Task<IdentityResult>

CreateTwoFactorRecoveryCode()

protected override string CreateTwoFactorRecoveryCode()

Returns

string

GetValidTwoFactorProvidersAsync(AdminApplicationUser)

public override Task<IList<string>> GetValidTwoFactorProvidersAsync(AdminApplicationUser user)

Parameters

user AdminApplicationUser

Returns

Task<IList<string>>

ResetPasswordAsync(AdminApplicationUser, string, string)

public override Task<IdentityResult> ResetPasswordAsync(AdminApplicationUser user, string token, string newPassword)

Parameters

user AdminApplicationUser
token string
newPassword string

Returns

Task<IdentityResult>