Compare commits

...

3 Commits

4 changed files with 6 additions and 6 deletions
composer.json
src
Resources
app/administration/src
config
Storefront/Framework/Captcha

@ -1,7 +1,7 @@
{
"name": "melvinachterhuis/turnstile-shopware6-plugin",
"name": "slinicraftet204/turnstileremaster",
"description": "CloudFlare Turnstile Captcha",
"version": "0.1.06-alpha",
"version": "0.1.08-alpha",
"type": "shopware-platform-plugin",
"license": "MIT",
"authors": [

@ -1,5 +1,5 @@
// Import the component override
import './module/sw-settings-basic-information/component/sw-settings-captcha-select-v2';
// import './module/sw-settings-basic-information/component/sw-settings-captcha-select-v2';
// Debug log to confirm this file is loaded
console.log('[TurnstileReMaster] Admin main.js loaded.');
console.error('[TurnstileReMaster] Admin main.js loaded.'); // Sehr auffällige Warnung um zu testen ob der scheiß geladen wird

@ -4,7 +4,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="TurnstileReMaster\Storefront\Framework\Captcha\CloudFlareTurnstile" public="true">
<service id="TurnstileReMaster\Storefront\Framework\Captcha\cloudFlareTurnstile" public="true">
<!-- Inject the standard Shopware PSR-18 HTTP client -->
<argument type="service" id="Psr\Http\Client\ClientInterface"/>
<!-- Inject the standard logger -->

@ -9,7 +9,7 @@ use Shopware\Storefront\Framework\Captcha\AbstractCaptcha;
use Symfony\Component\HttpFoundation\Request;
use Throwable;
final class CloudFlareTurnstile extends AbstractCaptcha
final class cloudFlareTurnstile extends AbstractCaptcha
{
public const CAPTCHA_NAME = 'cloudFlareTurnstile';
public const CAPTCHA_REQUEST_PARAMETER = 'cf-turnstile-response';