Newcaptcha-nuxt
v0.2.0
Minor Changes
54f6d97: Adds hCaptcha and Google reCAPTCHA v2/v3 as built-in providers. Set
captcha.providerto'hcaptcha'or'recaptcha', put the site key undercaptcha.providers.<name>.siteKeyand the secret inNUXT_CAPTCHA_HCAPTCHA_SECRETorNUXT_CAPTCHA_RECAPTCHA_SECRET. Both load through@nuxt/scripts, need consent (vendorshcaptchaandgoogle-recaptcha, overridable withconsentVendor) and fall back to RevenexxCaptcha without it, like Turnstile.- reCAPTCHA takes
version: 'v2'(the default: the checkbox, or invisible withinvisible/useCaptcha()) or'v3'. With v3 the component draws no box, only the line "Diese Website ist durch reCAPTCHA geschützt." (labels.recaptchaNotice), andverifyCaptcha()reportsscoreandaction, refuses a score below 0.5 aslow_score(change it withproviders.recaptcha.minScoreorverifyCaptcha'sminScore) and a token made for another action asaction_mismatch. Google's badge stays visible;hideBadge: truehides it, which Google allows only when the form says it is protected by reCAPTCHA. reCAPTCHA Enterprise is not supported yet. - hCaptcha runs as its checkbox widget or invisibly. A reused token is
replayed. An hCaptcha Enterprise score is reported so that higher means more human, like every other score. - In rider mode, Rider's site answer may carry the provider's public
options(for reCAPTCHA{ version }), which are merged into the provider's options, and Rider'sscoreis passed through. CaptchaLabelsgainsrecaptchaNotice, and a provider'sserver.verify()now also receives the route'sminScore. Nothing changes for existing configurations.
- reCAPTCHA takes