Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Resources/Private/Frontend/Partials/FriendlyCaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
/>
<div class="frc-captcha"
data-sitekey="{configuration.public_key}"
<f:if condition="{configuration.puzzle_server}">
<f:then>
data-puzzle-endpoint="{configuration.puzzle_server}"
</f:then>
</f:if>
{f:if(condition: '{configuration.lang}', then: 'data-lang="{configuration.lang}"')}></div>
</frc:form.friendlycaptcha></f:format.raw>
</f:render>
Expand Down