-
Notifications
You must be signed in to change notification settings - Fork 78
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 compatibility #331
Comments
Thx for the issue but I'm not understanding it. As I know we are currently supporting EWZRecaptchaBundle and you define in the EWZRecaptchaBundle if your project uses Recaptcha v2 or Recaptcha v3. That is also why #247 was closed after EWZ added support for it. If you want to give the content manager the ability to define if its v2 and v3. I'm not sure if we should support this. I don't see this as a task of a content manager to define what is the right way of protection for the website so there should only be one recaptcha block which just work and the developer defines if it uses v2 or v3. Did you run into a bug when defining v3 in the EWZRecaptchaBundle in combination with SuluFormBundle? |
The problem is that the SuluFormBundle is always using the v2 implementation. As you can see in https://github.com/sulu/SuluFormBundle/blob/2.4.0/Dynamic/Types/RecaptchaType.php on lines 39 and 45. The following function works with recaptcha v3
I think there should be an option in the SuluFormBundle to choose which recaptcha version you like to use. Based on that option the (SuluFormBundle)-RecaptchaType should change its behaviour. |
@Keimpy I see: I think it should depending on: ewz_recaptcha:
version: 2 # or 3 Use the V3 form type and v3 isTrue or not. We can detect that in a Do you want to give it a try to implement it this way? |
I will try to make a pull request for this feature. |
Actual Behavior
At the moment there is no direct support for Recaptcha v3.
Expected Behavior
Ability to use Recaptcha v3.
Steps to Reproduce
config/packages/ewz_recaptcha.yaml
; https://github.com/excelwebzone/EWZRecaptchaBundle#main-configuration-for-both-v2-and-v3 (version: 3)Possible Solutions
Add an additional Recaptcha v3 block next to the existing Recaptcha v2 block.
Additional links containing the relevant code:
The text was updated successfully, but these errors were encountered: