ABP Framework version: v5.3.4
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes Im trying custom create user by admin in abp,so override createAsync in IdentityUserAppService,but this part of code not executed
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IIdentityUserAppService))]
public class CustomIdentityUserAppService : IdentityUserAppService
{
#region DI
private readonly IContactDapperRepository _contactDapperRepository;
public CustomIdentityUserAppService(IdentityUserManager userManager, IIdentityUserRepository userRepository, IIdentityRoleRepository roleRepository, IOrganizationUnitRepository organizationUnitRepository, IIdentityClaimTypeRepository identityClaimTypeRepository, IdentityProTwoFactorManager identityProTwoFactorManager, IOptions<IdentityOptions> identityOptions, IDistributedEventBus distributedEventBus, IOptions<AbpIdentityOptions> abpIdentityOptions, IContactDapperRepository contactDapperRepository) : base(userManager, userRepository, roleRepository, organizationUnitRepository,identityClaimTypeRepository, identityProTwoFactorManager, identityOptions, distributedEventBus, abpIdentityOptions)
{
_contactDapperRepository = contactDapperRepository;
}
#endregion
public override async Task<IdentityUserDto> CreateAsync(IdentityUserCreateDto input)
{
var x = await base.CreateAsync(input);
var userContactId = CurrentUser.GetContactId().ToInt().GetValueOrDefault();
var userSessionId = CurrentUser.GetUserSessionId().ToInt();
var contactId = await _contactDapperRepository.CreateUserAsync(input, null, userContactId, userSessionId);
return x;
}
i try this
[ExposeServices( typeof(IIdentityUserAppService), typeof(IdentityUserAppService), typeof(CustomIdentityUserAppService))]
and this too
[ExposeServices(typeof(CustomIdentityUserAppService), typeof(IIdentityUserAppService), typeof(IdentityUserAppService))]
but not working yet
ABP Framework version: v5.3.4
UI type: Angular
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): yes Hi .we want for security in Forgot password , flow and messages be the same when an account exist or not exist, how can I do that? and i want to know how override SendPasswordResetCodeAsync and config it.
how can i Extend Application Configuration Endpoint For version 5.3? i want get setting from database and set in Application Configuration Endpoint