Skip to content

luyadev/luya-forms-captcha

Repository files navigation

LUYA Logo

LUYA Captcha Block for Forms Module

LUYA Maintainability Test Coverage Tests

This package contains a Google ReCapchta3 Block which can be used in combination with LUYA Forms Module.

Installation

Install the extension through composer:

composer require luyadev/luya-forms-captcha

Run the import command afterwards:

./luya import

Configuration

Ensure you have configured the himiklab(fork) recaptcha library in your config:

'components' => [
    //...
    'reCaptcha' => [
        'class' => 'luyadev\recaptcha\ReCaptchaConfig',
        'siteKeyV3' => 'SITE_KEY',
        'secretV3' => 'SECRET_KEY',
    ],
]

Create V3 Secret and Key