const classafHcaptcha::CaptchaServer
sys::Obj afHcaptcha::CaptchaServer
(Service) - To edit or view your hCaptcha account, visit https://dashboard.hcaptcha.com/.
- captchaJsFunc
Str captchaJsFunc()- captchaJsUrl
Uri captchaJsUrl()- enabled
const Bool enabled := trueDisable for local dev.
- injectJsCaptcha
Void injectJsCaptcha(Obj htmlInjector)Inject hCaptcha scripts into the page.
- log
const Log log := this.typeof().pod().log- make
new make(|This f)- secretKey
const Str secretKeyThe secretKey for the account.
- siteKey
const Str siteKeyThe siteKey to verify against.
- verifyCaptcha
Bool verifyCaptcha(Str? response, Bool checked := true)If not enabled, pass
<fail>to mimic a failure.- verifyUrl
const Uri verifyUrl := `https://hcaptcha.com/siteverify`The endpoint URL that tokens are verified against.