|
| getResponse (string $privatekey, string $remoteip, string $response) |
|
Recaptcha Plugin Based on the official recaptcha library( https://packagist.org/packages/google/recaptcha )
- Depuis
- 2.5
◆ getResponse()
getResponse |
( |
string |
$privatekey, |
|
|
string |
$remoteip, |
|
|
string |
$response |
|
) |
| |
|
private |
Get the reCaptcha response.
- Paramètres
-
string | $privatekey | The private key for authentication. |
string | $remoteip | The remote IP of the visitor. |
string | $response | The response received from Google. |
- Renvoie
- bool True if response is good | False if response is bad.
- Depuis
- 3.4
- Exceptions
-
Références $version.
◆ onCheckAnswer()
onCheckAnswer |
( |
|
$code = null | ) |
|
Calls an HTTP POST function to verify if the user's guess was correct
- Paramètres
-
string | $code | Answer provided by user. Not needed for the Recaptcha implementation |
- Renvoie
- True if the answer is correct, false otherwise
- Depuis
- 2.5
- Exceptions
-
Références $input, $version, et null.
◆ onDisplay()
onDisplay |
( |
|
$name = null , |
|
|
|
$id = 'dynamic_recaptcha_1' , |
|
|
|
$class = '' |
|
) |
| |
Gets the challenge HTML
- Paramètres
-
string | $name | The name of the field. Not Used. |
string | $id | The id of the field. |
string | $class | The class of the field. |
- Renvoie
- string The HTML to be embedded in the form.
- Depuis
- 2.5
Références $class, et $id.
◆ onInit()
onInit |
( |
|
$id = 'dynamic_recaptcha_1' | ) |
|
Initialise the captcha
- Paramètres
-
string | $id | The id of the field. |
- Renvoie
- Boolean True on success, false otherwise
- Depuis
- 2.5
- Exceptions
-
◆ onPrivacyCollectAdminCapabilities()
onPrivacyCollectAdminCapabilities |
( |
| ) |
|
Reports the privacy related capabilities for this plugin to site administrators.
- Renvoie
- array
- Depuis
- 3.9.0
◆ $app
◆ $autoloadLanguage
La documentation de cette classe a été générée à partir du fichier suivant :