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

security-package: Update for reCaptcha language code. Fixed incorrect language of reCaptcha #173

Conversation

engcom-Kilo
Copy link
Contributor

Description (*)

Added hl(language code) param to call for render reCaptcha.
Before language was param of URL https://www.google.com/recaptcha/api.js

Fixed Issues (if relevant)

Fixed incorrect language of reCaptcha.

Manual testing scenarios (*)

  1. Add settings for reCaptcha v2 checkbox (api keys test/test)
  2. Add settings for reCaptcha v2 checkbox - language code fr
  3. Add settings for reCaptcha v3 (api keys test/test)
  4. Add settings for reCaptcha v3 - language code de
  5. Enable reCaptcha for Contact page with reCaptcha v2 checkbox
  6. Enable reCaptcha for Newsletter form with reCaptcha v3
  7. Clean up the cache
  8. Open Contact page
  9. Text in reCaptcha blocks with French language, reCaptcha block for Newsletter not with German language.

Questions or comments

Contribution checklist (*)

  • Author has signed the Adobe CLA
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

…a Frontend, all types, set param hl in call to render.
@sdzhepa sdzhepa requested a review from naydav April 1, 2020 13:41
@sdzhepa sdzhepa added the Component: Google reCAPTCHA Issues and Pull Requests related to reCAPTCHA should be marked with this label label Apr 1, 2020
@@ -55,8 +55,7 @@ define(

element.async = true;
element.src = 'https://www.google.com/recaptcha/api.js' +
'?onload=globalOnRecaptchaOnLoadCallback&render=explicit' +
(this.settings.rendering.lang ? '&hl=' + this.settings.rendering.lang : '');
'?onload=globalOnRecaptchaOnLoadCallback&render=explicit';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated also for Admin panel

@engcom-Delta
Copy link

✔️ QA passed
Text in reCAPTCHA v2 ("I am not a robot") blocks on French, reCAPTCHA v3 Invisible block for Newsletter on German.
image

@engcom-Foxtrot engcom-Foxtrot mentioned this pull request Apr 3, 2020
5 tasks
@engcom-Foxtrot
Copy link
Contributor

Please see #191.

@lenaorobei lenaorobei deleted the security-package/incorrect-language-of-recaptcha branch June 10, 2020 20:57
magento-devops-reposync-svc pushed a commit that referenced this pull request Oct 15, 2024
AC-13224: Sync 2.4.8-beta1-develop with 2.4-develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Google reCAPTCHA Issues and Pull Requests related to reCAPTCHA should be marked with this label Progress: review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants