diff --git a/README.md b/README.md index f5b0636..69cfc4c 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,16 @@ The recommended way to install TYPO3 Console is by using [Composer](https://getc composer require balatd/db_friendlycaptcha +### Configuration + +extend your typo3conf/LocalConfiguration with the following: + + 'db_friendlycaptcha' => [ + 'lang' => 'de', + 'private_key' => 'XXXXXXXX', + 'public_key' => 'XXXXXXXXX', + 'verify_server' => 'https://eu-api.friendlycaptcha.eu/api/v1/siteverify', + 'puzzle_server' => 'https://eu-api.friendlycaptcha.eu/api/v1/puzzle', + ], + +leave verify_server and puzzle_server empty for global endpoint diff --git a/Resources/Private/Frontend/Partials/FriendlyCaptcha.html b/Resources/Private/Frontend/Partials/FriendlyCaptcha.html index 8e284f0..0bce481 100644 --- a/Resources/Private/Frontend/Partials/FriendlyCaptcha.html +++ b/Resources/Private/Frontend/Partials/FriendlyCaptcha.html @@ -13,6 +13,11 @@ />
+ + data-puzzle-endpoint="{configuration.puzzle_server}" + + {f:if(condition: '{configuration.lang}', then: 'data-lang="{configuration.lang}"')}>