Skip to content

captcha: add captcha widget to the signup window#1468

Merged
ProgrammerIn-wonderland merged 1 commit intoHeyPuter:mainfrom
XiaochenCui:captcha
Aug 28, 2025
Merged

captcha: add captcha widget to the signup window#1468
ProgrammerIn-wonderland merged 1 commit intoHeyPuter:mainfrom
XiaochenCui:captcha

Conversation

@XiaochenCui
Copy link
Copy Markdown
Contributor

@XiaochenCui XiaochenCui commented Aug 27, 2025

This PR introduce Cloudflare Turnstile on signup window to prevent the abuse of free account.

How to use:

  1. Create a "widget" at Cloudflare's Turnstile panel.
  2. Add following config to volatile/config/config.json:
{
    "services": {
        ...
        "cloudflare-turnstile": {
            "enabled": true,
            "site_key": "<your site key>",
            "secret_key": "<your secret key"
        }
    },
    ...
}

Then the user will be validated by Cloudflare Turnstile during signup.

TODO

  • Test the signup without "cloudflare-turnstile" config. (or "enabled" is false)
  • Test "invisible" verification mode.
  • Write the instruction for Cloudflare Turnstile's best practice.

@XiaochenCui
Copy link
Copy Markdown
Contributor Author

@jelveh @KernelDeimos now it's ready for review & merge. I've tested it manually with different verification mode (managed/visible)

@XiaochenCui
Copy link
Copy Markdown
Contributor Author

I'm not sure if we should use cloudflare-turnstile or cloudflare_turnstile as the config title

@ProgrammerIn-wonderland ProgrammerIn-wonderland merged commit 4027ad9 into HeyPuter:main Aug 28, 2025
4 checks passed
@jelveh jelveh mentioned this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants