Activities of "maliming"

hi

I see, I will find a way.

hi

Can you share a test project and the image?

liming.ma@volosoft.com

hi

using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Owl.reCAPTCHA;
using Volo.Abp.Account.ExternalProviders;
using Volo.Abp.Account.Public.Web;
using Volo.Abp.Account.Public.Web.Pages.Account;
using Volo.Abp.Account.Security.Recaptcha;
using Volo.Abp.Account.Web.Pages.Account;
using Volo.Abp.DependencyInjection;
using Volo.Abp.OpenIddict;
using Volo.Abp.Security.Claims;

namespace MyCompanyName.MyProjectName.Web.Pages;


[ExposeServices(typeof(LoginModel), typeof(OpenIddictSupportedLoginModel))]
public class MyLogin : OpenIddictSupportedLoginModel
{
    public MyLogin(
        IAuthenticationSchemeProvider schemeProvider,
        IOptions<AbpAccountOptions> accountOptions,
        IAbpRecaptchaValidatorFactory recaptchaValidatorFactory,
        IAccountExternalProviderAppService accountExternalProviderAppService,
        ICurrentPrincipalAccessor currentPrincipalAccessor,
        IOptions<IdentityOptions> identityOptions,
        IOptionsSnapshot<reCAPTCHAOptions> reCaptchaOptions,
        AbpOpenIddictRequestHelper openIddictRequestHelper)
        : base(
        schemeProvider,
        accountOptions,
        recaptchaValidatorFactory,
        accountExternalProviderAppService,
        currentPrincipalAccessor,
        identityOptions,
        reCaptchaOptions,
        openIddictRequestHelper)
    {

    }

    public override Task<IActionResult> OnPostAsync(string action)
    {
        // Check the  LoginInput.UserNameOrEmailAddress,
        return base.OnPostAsync(action);
    }
}


ok, Can you add your test code to this repo?

I will try to fix it.

hi

https://github.com/ahmet-ulusoy/ForYou.Exchange/commit/918d0ec6b2ff1dfd3ddcb524e746dd55d35863a9

Thanks I will check it asap

hi

Can you reproduce this in a new MS template project?

Checking MS projects remotely is difficult.

hi

Can you share the project?

I will check it locally.

liming.ma@volosoft.com

hi

Let discuss this on https://support.abp.io/QA/Questions/7083/Error---integrate-VoloAbpBlobStoringAws-in-file-management-module

Thanks

Answer

hi

https://docs.abp.io/en/abp/latest/Exception-Handling

Automatic Exception Handling

AbpExceptionFilter handles an exception if any of the following conditions are met:

  • Exception is thrown by a controller action which returns an object result (not a view result).
  • The request is an AJAX request (X-Requested-With HTTP header value is XMLHttpRequest).
  • Client explicitly accepts the application/json content type (via accept HTTP header).
  • If the exception is handled it's automatically logged and a formatted JSON message is returned to the client.

If your page result is not an object result. You can use try-catch in your page method.

https://docs.abp.io/en/abp/latest/UI/AspNetCore/Page-Alerts

Showing 5031 to 5040 of 11567 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.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.