LDAP Account Manager

HCaptcha
in package
implements CaptchaProvider

hCaptcha provider.

Interfaces, Classes, Traits and Enums

CaptchaProvider
Interface for providers of captchas.

Table of Contents

getCaptchaElement()  : htmlElement
Returns the HTML element to render for the captcha.
getId()  : string
Returns the id of the service
getLabel()  : string
Returns the label of the service
isValid()  : bool
Checks if the POST data contains a valid captcha result.

Methods

getCaptchaElement()

Returns the HTML element to render for the captcha.

public getCaptchaElement(string $siteKey) : htmlElement
Parameters
$siteKey : string

site key

Tags
inheritDoc
Return values
htmlElement

HTML element

getId()

Returns the id of the service

public getId() : string
Tags
inheritDoc
Return values
string

id

getLabel()

Returns the label of the service

public getLabel() : string
Tags
inheritDoc
Return values
string

label

isValid()

Checks if the POST data contains a valid captcha result.

public isValid(string $secretKey, string $siteKey) : bool
Parameters
$secretKey : string

secret key

$siteKey : string

site key

Tags
inheritDoc
Return values
bool

user solved captcha

Search results