-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Re-validate google reCAPTCHA if user response token expired #34469
Comments
Hi @AartiJogiya. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @ajijshekh123. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @ajijshekh123. Thank you for your request. I'm working on Magento instance for you. |
Hi @ajijshekh123, here is your Magento Instance: https://5993e6bdd5d5419ab37e2f817a970ebe-2-4-develop.instances.magento-community.engineering |
Hi @engcom-Hotel. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Hotel, here is your Magento Instance: https://5993e6bdd5d5419ab37e2f817a970ebe-2-4-develop.instances.magento-community.engineering |
Hello @AartiJogiya, We have tried to reproduce the issue in Magento 2.4-develop branch, but for us, it is not reproducible, please have a look at the below screenshot for reference, on both the times we are getting this error message: As mentioned in the issue description, keeping the required field empty and then pressing the "Create an Account" button, is not allow us to submit the page. In that case, we are getting the below error (Please refer to "This field is required" error message for "Confirm Password" field): Please tell us if we missed anything in order to reproduce the issue. Thanks |
Hi @engcom-Hotel, cc @AartiJogiya , I am also facing many error log in exception.log: I am using: Magento 2.4.2, reCAPTCHA v3 Invisible on the storefront. But I can't reproduce it either. |
Hello @hoangoclan, Please provide us with the steps to reproduce the issue. Thanks |
Hi @engcom-Hotel , |
Same on my site. |
Hi @Quentin-Sch , cc @AartiJogiya , @engcom-Hotel I have investigated the cause of it. In my project, I have disabled the submit button by default and enabled it when the Recaptcha is ready. Hope it is useful to you. |
Hello @AartiJogiya We have rechecked the issue, but still, we are unable to reproduce it. @hoangoclan as per your comment, we have tried to reproduce the issue in the slow network by using Throttling dropdown in chrome browser and selecting Slow 3G option but still, we are unable to reproduce the issue. Please suggest the missing steps. Thanks |
Hello, I was able to reproduce it with the same exception.log error message as above (only difference is my local is on 2.4.3-p1). The steps I took on my local were to 1. enable reCaptcha v2 invisible and 2. try to submit a message through the contact form. |
Hello @nmintcheva, We have tried to reproduce these steps as well but still, the issue is not reproducible for us. Please tell us if we missed anything in order to reproduce the issue. Thanks |
Dear @AartiJogiya, We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Regards |
I ran into this issue , after upgrading to 2.4.1-p1 from 2.3.7 Trying to login , then get a red error message: "Something went wrong with reCAPTCHA. Please contact the store owner." , TO ALLOW yourself access to your backend follow these steps:
For more info feel free to contact me on github. |
Google reCAPTCHA has token restrictions that is user response token expires after two minutes and to create new token we need to re-run reCAPTCHA varification. Refer Google reCAPTCHA document. On the customer create account page, it should re-run the reCAPTCHA varification in case previous user response token is expired and should not generate an error "Can not resolve reCAPTCHA parameter"
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
It should validate reCAPTCHA and if the user response token is expired it should execute reCAPTCHA verification again.
Actual result (*)
It posts empty "g-recaptcha-response" value on form submit after reCAPTCHA user response token is expired and therefore logs exception "Can not resolve reCAPTCHA parameter." and also shows error notification saying "Something went wrong with reCAPTCHA. Please contact the store owner".
Error log in exception.log:
![create_new_account](https://user-images.githubusercontent.com/40287689/139251970-d733b848-64a8-408e-b1d0-9e83e762d502.png)
main.ERROR: Can not resolve reCAPTCHA parameter. {"exception":"[object] (Magento\Framework\Exception\InputException(code: 0): Can not resolve reCAPTCHA parameter. at /var/www/public_html/vendor/magento/module-re-captcha-ui/Model/CaptchaResponseResolver.php:25)"} []
The text was updated successfully, but these errors were encountered: