0

For example, I want to show hCaptcha for customers from China and reCAPTCHA for anyone else. They are both configured and working.

I had some ideas with an around plugin, but I don't think this is the correct approach in this case.

asked Jun 4 at 11:50
1
  • I've successfully swapped them programmatically on the condition, but still don't know how to pass hCaptcha's secret to the swapped captcha instance... Commented Jun 12 at 7:52

1 Answer 1

0

Implementing after plugin on method GetCaptchaTypeFor from CaptchaTypeResolverInterface helped. Case solved.

answered Jun 13 at 23:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.