Skip to content

Commit

Permalink
Used challenge field in captcha validator fixes #240
Browse files Browse the repository at this point in the history
  • Loading branch information
mksplg committed Oct 18, 2014
1 parent 3e31d42 commit d615a40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -58,7 +58,7 @@ public void validate(FacesContext context, UIComponent component, Object value)
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();
reCaptcha.setPrivateKey(config.getString("recaptcha.privatekey"));

String challenge = null;//request.getParameter("recaptcha_challenge_field");
String challenge = request.getParameter("recaptcha_challenge_field");
String uresponse = request.getParameter("recaptcha_response_field");
ReCaptchaResponse reCaptchaResponse = reCaptcha.checkAnswer(remoteAddr, challenge, uresponse);

Expand Down

0 comments on commit d615a40

Please sign in to comment.