smacdonald2008 The issues with the example code and v2 aren't because of
the environment or AEM, it's because it's not set up to verify v2 like I
explained above. The Ajax call is only triggered if capResponse has a
value via .val(), and it can only get a value that way on v1. There are
several other variables included in the call that also don't have a
value in v2. On v2, you get the response value with
request.getParameter("g-recaptcha-response"). You then need to ...
smacdonald2008 As far as I can tell the ajax call to verify the
reCaptcha is only triggered in that example by v1. For example, `var
capResponse=$('#recaptcha_response_field').val();` is returning
"undefined" for me when using v2, and its length decides if the ajax
call is triggered via the if/else logic in capTemplate.jsp. When I click
the checkbox next to "I'm not a robot" on v2 and then click the "test"
button above it, I get the "response is empty" message, meaning that
capResponse is undefi...
Do you think this custom constraint path could work? Or do you know if
developers can make custom constraints for custom components? I'm having
trouble finding anything online about recaptcha v2 and AEM because
everyone just reblogs the article that you posted. Any other suggestions
would be helpful, I need this validated server-side.
smacdonald2008 unless I'm misunderstanding something that article is out
of date. I did that entire tutorial before and it only verifies the
deprecated reCaptcha V1 while just rendering the v2 underneath it.
That's why I'm trying to get a custom constraint to work. I'm certainly
open to other paths but I don't think that works, and update would be
appreciated. If you look at the article, rendering the v2 under v1 makes
no sense and there's no verification set up for v2. No js alerts either
I'm trying to validate a custom recaptcha component using constraints in
the same way the OOTB Form Elements do. I'm having trouble figuring out
how to connect the custom component to it's servervalidation.jsp
though.I need help getting to the point where submitting a form with the
custom constraint selected causes the captcha/servervalidations.jsp to
validate. It currently allows an undone captcha to be submitted. I have
my component:(I made a lot of edits to the captcha.jsp for brevity here