1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-22 02:02:32 +01:00

Captcha docs

This commit is contained in:
Madeline 2023-01-07 21:44:08 +11:00
parent 8e770e544c
commit 74c62e2a77
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -0,0 +1,25 @@
# CAPTCHAs
Fosscord currently supports two CAPTCHA providers; reCAPTCHA and hCaptcha.
=== "hCaptcha"
1. Navigate to [https://www.hcaptcha.com/](https://www.hcaptcha.com/)
2. Create an account - `Add hCaptcha for Publishers to my website or app`
3. Copy your `sitekey` to the [config](../configuration/index.md) `security_captcha_sitekey` value, wrapped in quotes
4. Copy your `secret` to the config `security_captcha_secret` value, wrapped in quotes
5. Set the config `security_captcha_service` value to `"hcaptcha"`
6. Set the `security_captcha_enabled` value to `true`, *not* wrapped in quotes.
=== "reCAPTCHA"
1. Navigate to [https://www.google.com/u/1/recaptcha/admin/create](https://www.google.com/u/1/recaptcha/admin/create)
2. Fill in your websites details
3. Select `reCAPTCHA v2` -> `"I'm not a robot" Checkbox`
4. Add your domain. For example, `staging.fosscord.com`. Go to the next screen.
5. Copy your `sitekey` to the [config](../configuration/index.md) `security_captcha_sitekey` value, wrapped in quotes
6. Copy your `secret` to the config `security_captcha_secret` value, wrapped in quotes
7. Set the config `security_captcha_service` value to `"recaptcha"`
8. Set the `security_captcha_enabled` value to `true`, *not* wrapped in quotes.
reCAPTCHA v3 and other v2 types may or may not work.