Skip to content

Support google/recaptcha 2.x

Latest

Choose a tag to compare

@thinhbuzz thinhbuzz released this 29 Nov 03:19
  • Support google/recaptcha 2.x (installed automatically on PHP >= 8.4, 1.x is kept for older versions)
  • Normalize the captcha response and client ip to strings before calling the sdk, so non-string request input fails validation instead of throwing a TypeError
  • Optional server side checks: expected_hostname, expected_apk_package_name, expected_action, score_threshold and challenge_timeout
  • Optional site_verify_url (example https://www.recaptcha.net/recaptcha/api/siteverify) and request_timeout
  • Add verifyResponse() to get the full ReCaptcha\Response (score, action, error codes)

Full changelog: https://github.com/thinhbuzz/laravel-google-captcha/blob/master/CHANGELOG.md