Compare commits

...

3 Commits

4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -1,5 +1,5 @@
// Import the component override // 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 // 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

View File

@ -4,7 +4,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services> <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 --> <!-- Inject the standard Shopware PSR-18 HTTP client -->
<argument type="service" id="Psr\Http\Client\ClientInterface"/> <argument type="service" id="Psr\Http\Client\ClientInterface"/>
<!-- Inject the standard logger --> <!-- Inject the standard logger -->

View File

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