const classafHcaptcha::CaptchaServer

sys::Obj
  afHcaptcha::CaptchaServer

(Service) - To edit or view your hCaptcha account, visit https://dashboard.hcaptcha.com/.

captchaJsFunc

Source

Str captchaJsFunc()

captchaJsUrl

Source

Uri captchaJsUrl()

enabled

Source

const Bool enabled := true

Disable for local dev.

injectJsCaptcha

Source

Void injectJsCaptcha(Obj htmlInjector)

Inject hCaptcha scripts into the page.

log

Source

const Log log := this.typeof().pod().log

make

Source

new make(|This f)

secretKey

Source

const Str secretKey

The secretKey for the account.

siteKey

Source

const Str siteKey

The siteKey to verify against.

verifyCaptcha

Source

Bool verifyCaptcha(Str? response, Bool checked := true)

If not enabled, pass <fail> to mimic a failure.

verifyUrl

Source

const Uri verifyUrl := `https://hcaptcha.com/siteverify`

The endpoint URL that tokens are verified against.