Download the PHP package blueways/bw-captcha without Composer
On this page you can find all versions of the php package blueways/bw-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bw-captcha
This extension adds a captcha element for the TYPO3 form component. The captcha generation uses Gregwar/Captcha, no Google or 3rd party includes.
Install
Composer
TER
Download the zip file from TYPO3 extension repository (TER).
Usage
Add the captcha element via Form Editor to your form or directly to your yaml form.
Via Form Editor
Or manual configuration
Configuration
After installation, include the static TypoScript template or include setup and constants manually.
To modify the captcha output, you can use the following TypoScript constants:
Usage in other Extensions
sf_event_mgt
To use the captcha element in the sf_event_mgt extension, you need to include the captcha partial in your custom event Registration template and activate the sfEventMgt feature in the extension settings:
Overriding the captcha element
To override the captcha partial, copy it to your extension and add the partial path to your form setup:
Migration from version 4.x to 5.x
In this version the inline JavaScript has been moved to a separate file to better comply with a Content Security Policy (CSP). If you dynamically load or display the captcha element, you probably need to initialize the captcha manually:
Make sure the JavaScript file is included in your page: EXT:bw_captcha/Resources/Public/JavaScript/Frontend/Captcha.js
Migration from version 3.x to 4.x
This version aims to make solving the captcha more accessible. It introduces a new audio feature that reads out the
current captcha code. Missing ARIA
properties have been added.
- Check out the new captcha partial
- Audio button is enabled by default (can be disabled via
plugin.tx_bwcaptcha.settings.audioButton
)
Migration from version 2.x to 3.x
The generation of the captcha moved to a middleware, which solves a lot of caching issues. Therefore, adjustments to the form element partial have been made. If you've modified the partial, you need to update the image tag and refresh button link.
tl;dr:
- Check out the new captcha partial
- Reload button is enabled by default (can be disabled via
plugin.tx_bwcaptcha.settings.refreshButton
) - You can re-enable the page cache, if disabled it because of this element
Troubleshooting
Refresh button not working
If your site is configured to use trailing slashes, the refresh url cannot be resolved. A simple fix is to add a setting for the pageType 3413, e.g.:
License
This project is licensed under GNU General Public License 2.0 (or later).
Contribute
This extension was made by Maik Schneider: Feel free to contribute!