Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant