Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ras 64 posts 328 karma points
    Jul 04, 2022 @ 11:55
    Ras
    0

    Google reCaptcha v2 using the wrong keys

    I'm trying to set up google reCaptcha v2 in Umbraco forms, (Umbraco v 7.10.0, Forms version 7.0.0) but the wrong keys keep being used. I've applied the new keys in

    <setting key="RecaptchaPublicKey" value="mykey" />
    <setting key="RecaptchaPrivateKey" value="myotherkey" />
    

    But Umbraco keeps using the "default" keys that were placeholders. All I get in the form is this

    enter image description here

    If I inspect the "recaptcha" I see that it's using the wrong keys which gives a 404 when it tries to fetch a recaptcha. However when I manually add the reCaptcha field in code with the correct keys, I get the reCaptcha field as expected. This doesn't really work though as it's not connected to the form. The only place I can access these default keys in code (other than in the webconfig where I already replaced them) is in a metadata file .. I've also cleared every possible cache and temp data and no difference.

    Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft