|
|
|
@ -106,30 +106,32 @@ You could completely **re-write** the entire business logic for a user creation
|
|
|
|
|
[ExposeServices(typeof(IdentityUserManager))]
|
|
|
|
|
public class MyIdentityUserManager : IdentityUserManager
|
|
|
|
|
{
|
|
|
|
|
public MyIdentityUserManager(
|
|
|
|
|
IdentityUserStore store,
|
|
|
|
|
IOptions<IdentityOptions> optionsAccessor,
|
|
|
|
|
IPasswordHasher<IdentityUser> passwordHasher,
|
|
|
|
|
IEnumerable<IUserValidator<IdentityUser>> userValidators,
|
|
|
|
|
IEnumerable<IPasswordValidator<IdentityUser>> passwordValidators,
|
|
|
|
|
ILookupNormalizer keyNormalizer,
|
|
|
|
|
IdentityErrorDescriber errors,
|
|
|
|
|
IServiceProvider services,
|
|
|
|
|
ILogger<IdentityUserManager> logger,
|
|
|
|
|
ICancellationTokenProvider cancellationTokenProvider
|
|
|
|
|
) : base(
|
|
|
|
|
store,
|
|
|
|
|
optionsAccessor,
|
|
|
|
|
passwordHasher,
|
|
|
|
|
userValidators,
|
|
|
|
|
passwordValidators,
|
|
|
|
|
keyNormalizer,
|
|
|
|
|
errors,
|
|
|
|
|
services,
|
|
|
|
|
logger,
|
|
|
|
|
cancellationTokenProvider)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
public MyIdentityUserManager(
|
|
|
|
|
IdentityUserStore store,
|
|
|
|
|
IIdentityRoleRepository roleRepository,
|
|
|
|
|
IIdentityUserRepository userRepository,
|
|
|
|
|
IOptions<IdentityOptions> optionsAccessor,
|
|
|
|
|
IPasswordHasher<IdentityUser> passwordHasher,
|
|
|
|
|
IEnumerable<IUserValidator<IdentityUser>> userValidators,
|
|
|
|
|
IEnumerable<IPasswordValidator<IdentityUser>> passwordValidators,
|
|
|
|
|
ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors,
|
|
|
|
|
IServiceProvider services,
|
|
|
|
|
ILogger<IdentityUserManager> logger,
|
|
|
|
|
ICancellationTokenProvider cancellationTokenProvider) :
|
|
|
|
|
base(store,
|
|
|
|
|
roleRepository,
|
|
|
|
|
userRepository,
|
|
|
|
|
optionsAccessor,
|
|
|
|
|
passwordHasher,
|
|
|
|
|
userValidators,
|
|
|
|
|
passwordValidators,
|
|
|
|
|
keyNormalizer,
|
|
|
|
|
errors,
|
|
|
|
|
services,
|
|
|
|
|
logger,
|
|
|
|
|
cancellationTokenProvider)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override async Task<IdentityResult> CreateAsync(IdentityUser user)
|
|
|
|
|
{
|
|
|
|
|