Activities of "liangshiwei"

Hi,

On the Dashboard page - http://localhost:4200/ - we call the API to get a list post from Blogging. Now we can not see the uploaded image

Is there any error message?

Hi,

You can change the current user context. For example:

public class MyBackgroundJob : AsyncBackgroundJob<MyBackgroundJobArgs>
{
    private readonly ICurrentPrincipalAccessor _principalAccessor;
    private readonly IdentityUserManager _identityUserManager;

    public MyBackgroundJob(ICurrentPrincipalAccessor principalAccessor, IdentityUserManager identityUserManager)
    {
        _principalAccessor = principalAccessor;
        _identityUserManager = identityUserManager;
    }

    public override async Task ExecuteAsync(MyBackgroundJobArgs args)
    {
        // get messages....
        var messages = ....;
        using (_principalAccessor.Change(await CreateUserClaimsPrincipalFromMessagesAsync(messages)))
        {
            //send messages here...
        }
    }

    private async Task<ClaimsPrincipal> CreateUserClaimsPrincipalFromMessagesAsync(messages...)
    {
        var user = await  _identityUserManager.FindByNameAsync(messages.UserName);
        var roles = await _identityUserManager.GetRolesAsync(user);
        var claims = new List<Claim>
        {
            new Claim(AbpClaimTypes.UserId, user.Id.ToString()),
            new Claim(AbpClaimTypes.UserName, user.UserName),
            new Claim(AbpClaimTypes.Email,user.Email),
            new Claim(AbpClaimTypes.TenantId,user.TenantId?.ToString()),
        };
        claims.AddRange(roles.Select(x => new Claim(AbpClaimTypes.Role, x)));
        return new ClaimsPrincipal(new ClaimsIdentity(claims));
    }
}

Hi,

I can confirm it's a bug, and we will fix it in the next patch version.

Your ticket was refunded.

You can try to clear the access-token.bin file, and try logout&login.

For Windows it's => %UserProfile%.abp\cli
For Linux it must be $HOME => /home/user/.abp/cli/

Do we have any documentation on using LeptonX components?

Are you looking for this? https://docs.abp.io/en/abp/latest/UI/Angular/Extensions-Overall

also, where is the source code on this LeptonX Pro and demo site?

Hi, you can download the demo site source code here

https://docs.abp.io/en/commercial/latest/themes/lepton-x/index#source-code

You can consider this answer.

https://github.com/abpframework/abp/issues/19909#issuecomment-2126416976 The reason ABP doesn't do this is to prevent duplicate verifications.

Hi,

This is because the text template is a multi-tenant entity.

could you try login as an admin user of a tenant to change the security code email template?

Hi,

Here are the changes. You can override the component if you want.

With that only abp and productService modules are being generated and the existing languageManagement, featureManagement and etc are being removed.

productService angular project is an independent project. It should only need to generate productService service proxy

Is there any error message on the terminal?

Showing 1941 to 1950 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on October 30, 2025, 06:33