|
Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
|
This is a PHP library that handles calling reCAPTCHA v2. More...
Functions | |
| recaptcha_check_response ($verifyurl, $privkey, $remoteip, $response) | |
| Calls an HTTP POST function to verify if the user's response was correct. | |
| recaptcha_get_challenge_html ($apiurl, $pubkey, $lang=null) | |
| Gets the challenge HTML This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from. | |
| recaptcha_lang ($lang=null) | |
| Returns the language code the reCAPTCHA element should use. | |
Variables | |
| const | RECAPTCHA_API_URL 'https://www.recaptcha.net/recaptcha/api.js' |
| The reCAPTCHA URL's. | |
| const | RECAPTCHA_VERIFY_URL 'https://www.recaptcha.net/recaptcha/api/siteverify' |
This is a PHP library that handles calling reCAPTCHA v2.