Difference between revisions of "Extensions:Captcha"
m (Never part of modified main, but def part of 3.0.0) Tag: 2017 source edit |
(Add the "this is in V3" warning box thingamabob) Tag: 2017 source edit |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Extensioninfobox|title=Captcha|desc=Adds a captcha to the registration page.|auth=Mercury|status=Stable/Testing|github={{Github|user=itinerare|branch=extension/captcha-v2|repo=lorekeeper-ext-archive}} {{Github|user=itinerare|branch=extension/captcha-v3}}|migration=no|package=yes|repo=lorekeeper-ext-archive|dev300=yes}} | {{Extensioninfobox|title=Captcha|desc=Adds a captcha to the registration page.|auth=Mercury|status=Stable/Testing|github={{Github|user=itinerare|branch=extension/captcha-v2|repo=lorekeeper-ext-archive}} {{Github|user=itinerare|branch=extension/captcha-v3}}|migration=no|package=yes|repo=lorekeeper-ext-archive|dev300=yes}} | ||
<!-- Put a short summary of your extension here! --> | <!-- Put a short summary of your extension here! --> | ||
+ | |||
+ | {| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;" | ||
+ | |- | ||
+ | | '''<u>THIS EXTENSION IS PART OF v3.0.0</u>''' | ||
+ | |- | ||
+ | | This extension (Captcha V3 version) has been merged into the v3.0.0 branch as [https://github.com/corowne/lorekeeper/pull/169 Captcha]. | ||
+ | |} | ||
+ | |||
+ | |||
This adds a captcha to the registration page. | This adds a captcha to the registration page. | ||
== Installation == | == Installation == | ||
Line 31: | Line 40: | ||
== See Also == | == See Also == | ||
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. --> | <!-- Any relevant other pages. You may consider linking to related extensions, for instance. --> | ||
+ | * [[Updating:_to_3.0.0]] |
Latest revision as of 12:40, 14 November 2024
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 EXTENSION IS PART OF v3.0.0 |
This extension (Captcha V3 version) has been merged into the v3.0.0 branch as Captcha. |
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!