Extensions:Captcha
Description | Adds a captcha to the registration page. |
---|---|
Author(s) | Mercury |
Status | Stable/Testing |
Github |
itinerare/lorekeeper-ext-archive/extension/captcha-v2 extension/captcha-v3 |
LK Version | Unspecified |
Uses a Package | |
Is part of LK v3.0.0's release | |
This adds a captcha to the registration page.
Installation
This makes use of anhskohbo/No-Captcha . There is now also a version making use of reCaptcha v3 using josiasmontag/laravel-recaptchav3 . In either case, pull the desired branch, then:
Installing packages with Composer: |
Commands are given as composer [command] ; if you have not installed composer globally, they will be php composer.phar [command] instead.
|
You may need to run composer self-update (assuming you have not recently) before installing package(s). If possible, update to composer v2.x; you may need to use the command composer self-update --2 .
|
If feasible, run composer update .
|
If you encounter memory issues: Locally, run composer update . Copy the composer.lock file to your site's server.
|
Run composer install .
|
Configuration
These instructions are derived from those on the package itself. Note that in this case Laravel will indeed auto-discover the package, so we skip directly to configuration.
First, obtain your secret and site keys from Google; you can do so here. For the original version: The captcha version and type are v2 and checkbox, respectively. The v3 version uses, of course, v3.
For the original version:
Add NOCAPTCHA_SECRET
and NOCAPTCHA_SITEKEY
to your .env file, like so:
NOCAPTCHA_SECRET=secret-key NOCAPTCHA_SITEKEY=site-key
For the v3 version:
Add RECAPTCHAV3_SITEKEY
and RECAPTCHAV3_SECRET
to your .env file, like so:
RECAPTCHAV3_SITEKEY=sitekey RECAPTCHAV3_SECRET=secret
That's it! The remainder of the configuration is accounted for by this branch.
Usage
Nothing specific.
Troubleshooting
While it ought to be mostly stable, I'll not rule out that issues could arise. If they do, I'm available via the Lorekeeper discord!