Ends in:
5 DAYS
20 HRS
33 MIN
10 SEC
Ends in:
5 D
20 H
33 M
10 S
Open Closed

recaptcha #3131


User avatar
0
malfaqeeh48 created

how to disable recaptcha box abp.io from db

  • ABP Framework version: v5.2.1
  • UI type:Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): 5.2.1
  • Exception message and stack trace: Angular / MVC /
  • Steps to reproduce the issue:"

17 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Can't do this from the user interface?

  • User Avatar
    0
    malfaqeeh48 created

    Yes because I did it from the setting and now i can not to login

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try this:

    update AbpSettings set Value = 'False' where Name = 'Abp.Account.Captcha.UseCaptchaOnLogin' and ProviderName = 'G'

    PS: You may need to restart the application

  • User Avatar
    0
    malfaqeeh48 created

    no its didnt work

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    Are you using distributed cache? like Redis. If so, you also need to clear the Redis cache.

  • User Avatar
    0
    malfaqeeh48 created

    i have abp commercial so when i add a new project and run the app on the nav there administration drop down then sub to settings I changed it to required now i can not login to the app so I thought i can change it from db if there is not give me a code to disable it inside the projectname.module

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can inject ISettingManager

    public async override Task OnApplicationInitializationAsync(ApplicationInitializationContext context)
    {
        var settingManager = context.ServiceProvider.GetRequiredService<ISettingManager>();
        await settingManager.SetGlobalAsync(AccountSettingNames.Captcha.UseCaptchaOnLogin, "False");
       
        .......
    }
    
  • User Avatar
    0
    malfaqeeh48 created

    where i have to add this method?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can put it in the ...ApplicationModule class of .Application project.

  • User Avatar
    0
    malfaqeeh48 created

  • User Avatar
    0
    malfaqeeh48 created

    i got this error

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could you share the error logs?

  • User Avatar
    0
    malfaqeeh48 created

    -24 12:27:57.386 +04:00 [INF] Notification is sent on same window time. 2022-05-24 12:27:57.386 +04:00 [DBG] HealthReportCollector - health report execution history saved. 2022-05-24 12:27:57.386 +04:00 [DBG] HealthReport history already exists and is in the same state, updating the values. 2022-05-24 12:27:57.386 +04:00 [DBG] HealthReportCollector has completed. 2022-05-24 12:27:57.386 +04:00 [DBG] HealthCheck collector HostedService executed successfully. 2022-05-24 12:28:07.388 +04:00 [DBG] Executing HealthCheck collector HostedService. 2022-05-24 12:28:07.389 +04:00 [INF] Start processing HTTP request GET "https://localhost:44385/health-status" 2022-05-24 12:28:07.389 +04:00 [INF] Sending HTTP request GET "https://localhost:44385/health-status" 2022-05-24 12:28:07.390 +04:00 [INF] Request starting HTTP/1.1 GET https://localhost:44385/health-status - - 2022-05-24 12:28:07.391 +04:00 [INF] Received HTTP response headers after 1.404ms - 404 2022-05-24 12:28:07.391 +04:00 [INF] End processing HTTP request after 1.8777ms - 404 2022-05-24 12:28:07.391 +04:00 [INF] Request finished HTTP/1.1 GET https://localhost:44385/health-status - - - 404 - - 0.4608ms 2022-05-24 12:28:07.391 +04:00 [ERR] GetHealthReport threw an exception when trying to get report from /health-status configured with name CFBC_Stroika Health Status. System.InvalidOperationException: Response is null or message can't be deserialized as HealthChecks.UI.Core.UIHealthReport. at System.Net.Http.HttpResponseMessageExtensions.As[TContent](HttpResponseMessage response) at HealthChecks.UI.Core.HostedService.HealthCheckReportCollector.GetHealthReport(HealthCheckConfiguration configuration) 2022-05-24 12:28:07.393 +04:00 [INF] Notification is sent on same window time. 2022-05-24 12:28:07.393 +04:00 [DBG] HealthReportCollector - health report execution history saved. 2022-05-24 12:28:07.393 +04:00 [DBG] HealthReport history already exists and is in the same state, updating the values. 2022-05-24 12:28:07.393 +04:00 [DBG] HealthReportCollector has completed. 2022-05-24 12:28:07.393 +04:00 [DBG] HealthCheck collector HostedService executed successfully.

  • User Avatar
    0
    malfaqeeh48 created

    if i remove the method its work fine

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could not reproduce the problem, can you share a project with me? shiwei.liang@volosoft.com

  • User Avatar
    0
    malfaqeeh48 created

    the hole project ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    how to disable recaptcha box abp.io from db

    We use the AccountSettingNames.Captcha.UseCaptchaOnLogin setting to check if captcha is enabled.

    https://support.abp.io/QA/Questions/3131#answer-9782b72a-81de-b277-6d8e-3a0405e36d3e https://support.abp.io/QA/Questions/3131#answer-8e130695-300a-53d7-8d5a-3a0406e465ac

    The steps I provide work for me but not you. I'm thinking it may be related to your project, so I want to check if there is something wrong.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 26, 2024, 12:49