Activities of "liangshiwei"

Could you share a minimal reproduceible project with me? i will check it.

shiwei.liang@volosoft.com

Hi,

You can consider this https://learn.microsoft.com/en-us/ef/core/modeling/inheritance

Hi,

ABP uses the standard ASPNETCore TwoFactor: https://learn.microsoft.com/en-us/aspnet/core/security/authentication/2fa?view=aspnetcore-1.1

You can override the GenerateTwoFactorTokenAsync method to invalidate the previous token.

You can store it in cache and check it.

Hi,

To add a new menu to the Bottom, you have to custom the side-menu layout

You can set the HTTP Request timeout.

BWT, I don't remember uploading a very large file like this.

Hi,

you can try to create a new uow to create a user.

for example:

Guid userId;
using (var uow = _unitOfWorkManager.Begin(requiresNew: true, isTransactional: true))
{
    var newUserName = await GetUniqueUserNameAsync(input.Name.Trim(), input.Surname.Trim());
    var user = new IdentityUser(_guidGenerator.Create(), newUserName.Trim(), input.Email, tenantId);

    var creationResult = await _identityUserManager.CreateAsync(user, input.Password.Trim());
 creationResult.CheckErrors();

    await _identityUserManager.SetEmailAsync(user, input.Email.Trim());
    await _identityUserManager.SetPhoneNumberAsync(user, input.PhoneNumber.Trim());

    user.Name = input.Name.Trim();
    user.Surname = input.Surname.Trim();

    ......
    
    userId = user.Id;
    await uow.CompleteAsync();
}

var userDetails = await _identityUserManager.GetByIdAsync(userId);

Hi,

can you add / to redirect_uri

Hi,

okay

Test is configured using the Production Redis db for now so that I can keep everything consistent for troubleshooting.

Don't use Production Redis db for Test env.

I think it's related to the session check.

you can try this to check if it's works:

[ExposeServices(typeof(IdentitySessionChecker))]
public class MyIdentitySessionChecker : IdentitySessionChecker
{
    public MyIdentitySessionChecker(IOptions<AbpClaimsPrincipalFactoryOptions> abpClaimsPrincipalFactoryOption, IdentitySessionManager identitySessionManager, IDistributedCache<IdentitySessionCacheItem> cache, IClock clock, IWebClientInfoProvider webClientInfoProvider, IOptions<IdentitySessionCheckerOptions> options) : base(abpClaimsPrincipalFactoryOption, identitySessionManager, cache, clock, webClientInfoProvider, options)
    {
    }

    public override Task<bool> IsValidateAsync(string sessionId)
    {
        return Task.FromResult(true);
        //return base.IsValidateAsync(sessionId);
    }
}

Hi,

you can use CSS to change the style without any problem.

Sorry, I don't know what exact question is

Showing 271 to 280 of 5944 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11