Activities of "maliming"

hi

You can check this, https://gist.github.com/jmichas/dab35d9b8e916eae8936322465d76b66

hi

Is it correct that redirect_uri does not have a port?

hi

You can consider overriding the login page. https://support.abp.io/QA/Questions/160/How-to-customize-an-ABP-project

hi

You can try to always switch to host in DynamicLocalizationResourceContributor


public class DynamicLocalizationResourceContributor : ILocalizationResourceContributor
{
    protected LocalizationResource Resource;
    protected IDynamicResourceLocalizer DynamicResourceLocalizer;

    public void Initialize(LocalizationResourceInitializationContext context)
    {
        Resource = context.Resource;
        DynamicResourceLocalizer = context.ServiceProvider.GetRequiredService<IDynamicResourceLocalizer>();
    }

    public LocalizedString GetOrNull(string cultureName, string name)
    {
        using (CurrentTenant.Change(null))
        {
            return DynamicResourceLocalizer.GetOrNull(Resource, cultureName, name);
        }
    }

    public void Fill(string cultureName, Dictionary<string, LocalizedString> dictionary)
    {
        using (CurrentTenant.Change(null))
        {
            DynamicResourceLocalizer.Fill(Resource, cultureName, dictionary);
        }
    }
}


👍

hi

You can check this. I copied the code from base.

protected async override Task<IdentityUser> RegisterLocalUserAsync()
{
    var userDto = await RegisterLocalUser2Async();
    var user = await UserManager.GetByIdAsync(userDto.Id);

    user.Name = Input.FirstName;
    user.Surname = Input.LastName;

    (await UserManager.UpdateAsync(user)).CheckErrors();

    return user;
}

protected virtual async Task<IdentityUser> RegisterLocalUser2Async()
{
    ValidateModel();

    var captchaResponse = string.Empty;
    if (UseCaptcha)
    {
        captchaResponse = HttpContext.Request.Form[RecaptchaValidatorBase.RecaptchaResponseKey];
    }
    var userDto = await AccountAppService.RegisterAsync(
        new RegisterDto
        {
            AppName = "MVC",
            EmailAddress = Input.EmailAddress,
            Password = Input.Password,
            UserName = Input.FirstName + Input.LastName,
            ReturnUrl = ReturnUrl,
            ReturnUrlHash = ReturnUrlHash,
            CaptchaResponse = captchaResponse
        }
    );

    return await UserManager.GetByIdAsync(userDto.Id);
}

You need to include your navigation entity.

https://support.abp.io/QA/Questions/2301#answer-c47f204b-9a58-626b-5c6a-3a00e7a19105

ok

https://docs.abp.io/en/abp/5.0/Entity-Framework-Core#explicit-lazy-loading https://docs.microsoft.com/en-us/ef/core/querying/related-data/eager

Maybe the x.Asset is null. Can you try to include it? or ignore it?

Showing 7271 to 7280 of 8964 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 14, 2025, 08:49