]> source.dussan.org Git - gitea.git/commit
Add new captcha: cloudflare turnstile (#22369)
authorByLCY <bylcy@bylcy.dev>
Sun, 5 Feb 2023 07:29:03 +0000 (15:29 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 07:29:03 +0000 (15:29 +0800)
commit7baeb9c52a69eb6f7e0973986f2a6bebdd6352d0
tree9aa89a504561468d26726507edb21c32a13621ae
parente35f8e15a67e8268542d2442dac32993b6944043
Add new captcha: cloudflare turnstile (#22369)

Added a new captcha(cloudflare turnstile) and its corresponding
document. Cloudflare turnstile official instructions are here:
https://developers.cloudflare.com/turnstile

Signed-off-by: ByLCY <bylcy@bylcy.dev>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Jason Song <i@wolfogre.com>
13 files changed:
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
modules/context/captcha.go
modules/setting/service.go
modules/setting/setting.go
modules/turnstile/turnstile.go [new file with mode: 0644]
templates/base/footer.tmpl
templates/user/auth/captcha.tmpl
web_src/js/features/captcha.js [new file with mode: 0644]
web_src/js/features/mcaptcha.js [deleted file]
web_src/js/index.js
web_src/less/_form.less