Starts in:
99 DAYS
99 HRS
99 MIN
99 SEC
Starts in:
99 D
99 H
99 M
99 S

Activities of "liangshiwei"

Answer

do I need to configure the the same DbSets in both contexts if I want the tenant tables also to be in the host database?

Hi, yes you need it, otherwise it won't create the table

Hi,

Azure AD and openiddict are two things. azure ad does not depend on openiddict.

we have document you can check it: https://docs.abp.io/en/abp/2.8/How-To/Azure-Active-Directory-Authentication-MVC

Hi,

  • BackgroundJobWorker is a built-in worker in ABP that is used for BackgroundJob system.
  • TokenCleanupBackgroundWorkers is a built-in worker in ABP that is used to clean the old tokens.

And the SyncLeavePlans works as expected.

Hi,

ABP is a typical ASPNET Core application, you can follow the Microsoft document: https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-iis?view=aspnetcore-6.0&tabs=visual-studio

Hi,

ABP is designed to be compatible with ASP.NET Core Identity and will try to localize error code, but it doesn't support custom errors.

The solution is very simple, you just need to throw a BusinessException:

public const string PhoneNumberStartsWithZeroError = "MyProjectName:PhoneNumberStartsWithZero";

public Task<IdentityResult> ValidateAsync(UserManager<IdentityUser> manager, IdentityUser user)
{
    throw new BusinessException(PhoneNumberStartsWithZeroError);
}
Configure<AbpExceptionLocalizationOptions>(options =>
{
    options.MapCodeNamespace("MyProjectName", typeof(MyProjectNameResource));
});

Hi,

I think you need background worker instead of background jobs

https://docs.abp.io/en/abp/latest/Background-Workers-Hangfire

Hi,

Can you try this?


public IExceptionToErrorInfoConverter ExceptionToErrorInfoConverter { get; }



var result = (await this.userManager.CreateAsync(user, input.Password));
try
{
    result.CheckErrors();
}
catch(AbpIdentityResultException e)
{   
    var msg = ExceptionToErrorInfoConverter.Convert(e, false).Message;
}

Hi,

Could you provide the full steps to reproduce? thanks.

Answer

Seems there is no problem, I'm closing the question.

Hi,

As you see, I can't reproduce the problem. https://support.abp.io/QA/Questions/3896#answer-2868e332-f420-5d29-a9b4-3a0701183165

I'd like to check it remotely, please email me: shiwei.liang@volosoft.com

Showing 381 to 390 of 2428 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 22, 2025, 10:44