Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matdave/turnstile
MODX Turnstile Hook
https://github.com/matdave/turnstile
Last synced: 11 days ago
JSON representation
MODX Turnstile Hook
- Host: GitHub
- URL: https://github.com/matdave/turnstile
- Owner: matdave
- Created: 2023-04-14T20:51:21.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T16:01:37.000Z (9 months ago)
- Last Synced: 2024-12-03T22:09:20.605Z (about 2 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turnstile for MODX
Turnstile is a MODX Extra that allows you to incorporate CloudFlare's
[Turnstile](https://www.cloudflare.com/products/turnstile/) Captcha into your MODX site.## Installation
Install via Package Management.
Sign up for a CloudFlare account. Within the CloudFlare dashboard, click on Turnstile and
select "Add Your Site". You can then copy the Site Key and Secret Key into the Turnstile
system settings in MODX.## Usage
Turnstile currently only works with FormIt. To use it, add the following to your FormIt call:
```
[[!FormIt?
&hooks=`tsFormItHook`
...
```Within the body of your form, add the following snippet:
```
[[!tsRender]]
```This will render the Turnstile Captcha. If the user fails the Captcha, the form will not be
submitted.