Revert changes from main-test and updated Addon to newer Version

This commit is contained in:
Nils 2024-10-16 21:12:41 +02:00
parent b6bbe645ef
commit 5957b5586f
No known key found for this signature in database
GPG Key ID: 30A8F8CF0E18A06D
4 changed files with 10 additions and 3 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
composer.phar/
/composer.phar
.idea

View File

@ -7,10 +7,13 @@
"authors": [ "authors": [
{ {
"name": "Melvin Achterhuis" "name": "Melvin Achterhuis"
},
{
"name": "Nils Gerhardt | SLINIcraftet204"
} }
], ],
"require": { "require": {
"shopware/core": "6.4.*", "shopware/core": "6.5.*",
"ext-curl": "*" "ext-curl": "*"
}, },
"autoload": { "autoload": {

View File

@ -1,7 +1,7 @@
{ {
"captcha": { "captcha": {
"cloudFlareTurnstile": { "cloudFlareTurnstile": {
"dataProtectionInformation": "This site is protected by Turnstile and the CloudFlare <a href=\"https://www.cloudflare.com/en-gb/privacypolicy/\">Privacy Policy</a> and <a href=\"https://www.cloudflare.com/en-gb/website-terms/\">Terms of Service</a> apply." "dataProtectionInformation": "Dieser Shop wird durch CloudFlare Turnstile geschützt <a href=\"https://www.cloudflare.com/en-gb/privacypolicy/\">Privacy Policy</a> and <a href=\"https://www.cloudflare.com/en-gb/website-terms/\">Terms of Service</a> apply."
} }
} }
} }

View File

@ -28,7 +28,7 @@ class CloudFlareTurnstile extends AbstractCaptcha
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function isValid(Request $request /* , array $captchaConfig */): bool public function isValid(Request $request , array $captchaConfig): bool
{ {
if (\func_num_args() < 2 || !\is_array(func_get_arg(1))) { if (\func_num_args() < 2 || !\is_array(func_get_arg(1))) {
Feature::triggerDeprecationOrThrow( Feature::triggerDeprecationOrThrow(