Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

ReCaptcha V3 not getting language params from recaptcha.php #92

Open
fernandoamorim30 opened this issue Jan 2, 2024 · 0 comments
Open

Comments

@fernandoamorim30
Copy link

Hi

When i put {!! htmlScriptTagJsApi(config('recaptcha')) !!} in blade file, the js call to recaptcha api.js not set language param configured previusly in recaptcha.php, in config folder:

Screenshot 2024-01-01 at 21 59 19

The result return the default file recaptcha__en.js

Loking in vendor files, in ReCaptchaBuilderV3.php file, i'm not found a language param configured on call api.js:

Screenshot 2024-01-01 at 22 07 19

To resolve this problem, i suggest create an $lang variable before the api.js call getting param 'default_language' from recaptcha.php config file. Something like this:

Screenshot 2024-01-01 at 22 09 31

Is a just an suggest!

Environment:

  • Package version: ^6.0

Thanks! 💪🏼👊🏼

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant