Added recipe for zemasterkrom/zmkr-cloudflare-turnstile-bundle (#1589)

* Add recipe for zemasterkrom/zmkr-cloudflare-turnstile-bundle

* Fixed recipe files for better QA
This commit is contained in:
Raphaël KIMM
2024-01-20 09:49:19 +01:00
committed by GitHub
parent 90b3d7b7f3
commit 282ef7409d
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
zmkr_cloudflare_turnstile:
captcha:
sitekey: "%env(CLOUDFLARE_TURNSTILE_SITEKEY)%"
secret_key: "%env(CLOUDFLARE_TURNSTILE_SECRET_KEY)%"

View File

@@ -0,0 +1,14 @@
{
"bundles": {
"Zemasterkrom\\CloudflareTurnstileBundle\\ZmkrCloudflareTurnstileBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"CLOUDFLARE_TURNSTILE_SITEKEY": "1x00000000000000000000AA",
"CLOUDFLARE_TURNSTILE_SECRET_KEY": "1x0000000000000000000000000000000AA"
}
}

View File

@@ -0,0 +1,10 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Almost ready </>
<bg=blue;fg=white> </>
* <fg=blue>Configure</> the captcha initializer parameters:
1. Modify Cloudflare Turnstile keys in your .env file to use your application keys (<comment>CLOUDFLARE_TURNSTILE_SITEKEY</>, <comment>CLOUDFLARE_TURNSTILE_SECRET_KEY</>)
2. Associate a <comment>CloudflareTurnstileType</> in your form builder
3. Check that the submitted form is valid: captcha validation will be automatically triggered
* Read the documentation at <comment>https://github.com/Zemasterkrom/zmkr-cloudflare-turnstile-bundle</>