Activities of "liangshiwei"

Hi,

You can try this:

context.Services.ConfigureApplicationCookie(options => 
{
    options.ExpireTimeSpan = TimeSpan.FromSeconds(30); // just an example, you can use any time span you want
});
[ExposeServices(typeof(LoginModel))]
public class MyLoginModel : OpenIddictSupportedLoginModel
{
    public MyLoginModel(IAuthenticationSchemeProvider schemeProvider, IOptions<AbpAccountOptions> accountOptions, IAbpRecaptchaValidatorFactory recaptchaValidatorFactory, IAccountExternalProviderAppService accountExternalProviderAppService, ICurrentPrincipalAccessor currentPrincipalAccessor, IOptions<IdentityOptions> identityOptions, IOptionsSnapshot<Owl.reCAPTCHA.reCAPTCHAOptions> reCaptchaOptions, AbpOpenIddictRequestHelper openIddictRequestHelper) : base(schemeProvider, accountOptions, recaptchaValidatorFactory, accountExternalProviderAppService, currentPrincipalAccessor, identityOptions, reCaptchaOptions, openIddictRequestHelper)
    {
    }

    public override Task<IActionResult> OnPostAsync(string action)
    {
        // Remember me must be true, otherwise the cookie is session
        LoginInput.RememberMe = true;
        return base.OnPostAsync(action);
    }
}

Hi,

You can upload to google drive or onedrive and share the link with me. thanks.

Hi

The notification icon is just a visual element seen in our HTML demo and hasn't been developed as a feature on its own. Its placement on the desktop is entirely customizable, allowing users to add as many other shortcut icons as they like, such as chat or calendar icons, just like in the HTML demo.

On mobile devices, these icons can be placed either in a mobile submenu or added as a menu item under an expandable user menu. It's entirely up to the user's preference, offering a flexible and customizable experience.

Hi,

The microservice template is pre-configured:

Hi,

Yes, it is available when you extend the object, but the entity is difficult to do because of the database provider.

Hi,

I don't recommend you do this, I think this may be a usage issue.

If you are willing to provide detailed steps or projects I will try to help you.

Hi,

Because the time of the parameter is UTC time.

What do you mean data result is correct

I mean, when you search, the data of 17.10.2023 time will not appear, right?

Hi,

You can check this: https://blog.abp.io/abp/ABP.IO-Platform-7-4-RC-Has-Been-Published

Hi,

You can inject the IIdentityRoleAppService to get roles.

Hi,

You can try :

.....

app.UseAuthentication();
app.Use(async (httpContext, next) =>
{
    var currentUser = httpContext.RequestServices.GetRequiredService<ICurrentUser>();
    if (currentUser.IsAuthenticated)
    {
        var userManager = httpContext.RequestServices.GetRequiredService<IdentityUserManager>();
        if (await userManager.FindByIdAsync(currentUser.Id.ToString()) == null)
        {
            await httpContext.SignOutAsync();
            httpContext.Response.Redirect("....");
            return;
        }
    }

    await next();
});
Showing 3211 to 3220 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20