mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
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:
@@ -0,0 +1,4 @@
|
||||
zmkr_cloudflare_turnstile:
|
||||
captcha:
|
||||
sitekey: "%env(CLOUDFLARE_TURNSTILE_SITEKEY)%"
|
||||
secret_key: "%env(CLOUDFLARE_TURNSTILE_SECRET_KEY)%"
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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</>
|
||||
Reference in New Issue
Block a user