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
hi
https://docs.abp.io/en/abp/latest/Exception-Handling
AbpExceptionFilter handles an exception if any of the following conditions are met:
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
hi
Please clear all logs.txt and re-share the logs of all applications.
Thanks.
https://wetransfer.com/ liming.ma@volosoft.com