Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Captcha Issues #3966


User avatar
0
avanekar02 created

Hello

i have set captcha off but it still shows required when i go to create new account

regards anwar


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @avanekar02 which project type do you use ?

    • MVC 5.x & jQuery
    • MVC 5.x & Angualr Js
    • ASP.NET Core & jQuery
    • ASP.NET Core & Angular 2 ?

    Thanks.

  • User Avatar
    0
    avanekar02 created

    ASP.NET Core & Angular 2 ?

  • User Avatar
    0
    aaron created
    Support Team

    PR: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/pull/508">https://github.com/aspnetzero/aspnet-zero-core/pull/508</a>

  • User Avatar
    0
    avanekar02 created

    thanks aron,

    but my problem still exist i have replace UserManagement with TenantManagement but still does not work

    my function

    private bool UseCaptchaOnRegistration() { if (DebugHelper.IsDebug) { return false; }

            var tenancyName = _tenancyNameFinder.GetCurrentTenancyNameOrNull();
            if (tenancyName.IsNullOrEmpty())
            {
                return true;
            }
    
            var tenant = AsyncHelper.RunSync(() => GetActiveTenantAsync(tenancyName));
            return SettingManager.GetSettingValueForTenant&lt;bool&gt;(AppSettings.TenantManagement.UseCaptchaOnRegistration, tenant.Id);
            //return SettingManager.GetSettingValueForTenant&lt;bool&gt;(AppSettings.UserManagement.UseCaptchaOnRegistration, tenant.Id);
        }
    
  • User Avatar
    0
    avanekar02 created

    Hello aron,

    i think this part should be changed as mentioned below...

    var tenancyName = _tenancyNameFinder.GetCurrentTenancyNameOrNull(); if (tenancyName.IsNullOrEmpty()) { // return true; return false; //---------------Change above to this }

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @avanekar02,

    We can continue on @aaron's PR <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/pull/508">https://github.com/aspnetzero/aspnet-zero-core/pull/508</a>.