Dynamic binding for Recaptcha Secret

Dynamic binding for Recaptcha Secret

Bump!

Hm… Is this for front-end or back-end?

In my back-end I’m using an environment variable to store the secret

Hi @Apple,
Can you explain to me how you managed to do that,
Can see a binding option here on the backend
image

Oh, it seems I literally typed the expression:

{{$_ENV.RECAPTCHA_SECRET_KEY}}

Here’s how I do it on the front-end, NodeJS-specific:

<div id="dmxReCaptcha21" class="g-recaptcha" data-sitekey="<%=_('$_ENV.RECAPTCHA_SITE_KEY',locals)%>"></div>

Thanks @Apple, That actually worked.