refactor(captcha): update Cap to 2.0.0 (#2573)

* refactor(captcha): update Cap backend to 2.0.0 API format

* feat(captcha): add Cap version config for 1.x/2.x compatibility

* fix(captcha): change Cap default version to 1.x for backward compatibility

* refactor(captcha): remove Cap 1.x compatibility, keep only 2.x support

* feat(captcha): update field names to Cap 2.0 standard - Site Key and Secret Key

* fix(captcha): update Cap field names in defaults configuration
This commit is contained in:
WittF
2025-06-26 14:58:58 +08:00
committed by GitHub
parent 3db522609e
commit 2500ebc6a4
5 changed files with 18 additions and 16 deletions

View File

@@ -393,8 +393,8 @@ var DefaultSettings = map[string]string{
"captcha_turnstile_site_key": "",
"captcha_turnstile_site_secret": "",
"captcha_cap_instance_url": "",
"captcha_cap_key_id": "",
"captcha_cap_key_secret": "",
"captcha_cap_site_key": "",
"captcha_cap_secret_key": "",
"thumb_width": "400",
"thumb_height": "300",
"thumb_entity_suffix": "._thumb",