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)
-
0
Can't do this from the user interface?
-
0
Yes because I did it from the setting and now i can not to login
-
0
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
-
0
no its didnt work
-
0
HI,
Are you using distributed cache? like Redis. If so, you also need to clear the Redis cache.
-
0
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
-
0
You can inject
ISettingManager
public async override Task OnApplicationInitializationAsync(ApplicationInitializationContext context) { var settingManager = context.ServiceProvider.GetRequiredService<ISettingManager>(); await settingManager.SetGlobalAsync(AccountSettingNames.Captcha.UseCaptchaOnLogin, "False"); ....... }
-
0
where i have to add this method?
-
0
Hi,
You can put it in the
...ApplicationModule
class of.Application
project. -
0
-
0
i got this error
-
0
Could you share the error logs?
-
0
-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.
-
0
if i remove the method its work fine
-
0
Could not reproduce the problem, can you share a project with me? shiwei.liang@volosoft.com
-
0
the hole project ?
-
0
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.