Base solution for your next web application
Open Closed

How to Enable and Disable Re-captcha ? #3455


User avatar
0
shanefryer4184 created

I have Angular 4 with Asp.net Core.

I have build and deployed the app on Azure. Now I am getting "Error for site owner. Invalid domain for site key"

I have created new Site key & secret key from google captcha and replace it in Appsettings.json under the Core Layer.

But still I am not getting the captcha check box like it should be.

I even disabled it from the tenant settings under user management, but no use.

If it is a bug, how should I disable captcha?

Hope to hear from you soon.


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

    Hi,

    In Angular4 version, you need to set recaptcha site key here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/assets/appconfig.json">https://github.com/aspnetzero/aspnet-ze ... onfig.json</a>.

    Also, you should create key for angular client site app.

    Thanks.

  • User Avatar
    0
    shanefryer4184 created

    The link you have sent me is not working.

    I already set site and secret key in appsettings.json in Dotnet core folder

    In Angular folder, appconfig.json has no value for sitekey. Should I add sitetkey just the way it is in appsettings.json ?

    What do you mean by "create key for angular client site app." ? Can you elaborate ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If your setting file for angular does not contain that key, you can check register.component.html and register-tenant.component.html.

    We moved this setting to appconfig.json but it was embedded in html files in one of previous versions.

    You also need to create a recaptcha key here <a class="postlink" href="https://www.google.com/recaptcha/admin#list">https://www.google.com/recaptcha/admin#list</a> for your domain.

    If you can also share your github username, we can invite you to aspnetzero organization, so you can see private repositories.

    Thanks.

  • User Avatar
    0
    shanefryer4184 created

    <a class="postlink" href="https://github.com/shalinjirawla">https://github.com/shalinjirawla</a>

    is my GitHub.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You are invited on github. We also have <a class="postlink" href="https://github.com/ShaneFryer4184">https://github.com/ShaneFryer4184</a> as your other github account, do you use both accounts ?

    Thanks.