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 := true
Disable 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 secretKey
The secretKey for the account.
- siteKey
const Str siteKey
The 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.