Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When logging is enabled, I always get
user_register post blocked by CAPTCHA module: challenge "reCAPTCHA" (by module "recaptcha"), user answered "reCAPTCHA", but the solution was "1".
It should look like
user_register post blocked by CAPTCHA module: challenge "reCAPTCHA" (by module "recaptcha"), user answered "un fctory" but the solution was "fun factory".
Comments
Comment #1
Kronix CreditAttribution: Kronix commentedI'm getting this as well. I don't suppose anyone has looked into this...?
It seems to be just a reporting error -- the reCAPTCHA is being validated correctly. But it would be helpful to determine how many invalid attempts are from actual users, and how many are from spammers.
Comment #2
jtwalters CreditAttribution: jtwalters commentedI am pretty sure this isn't possible.
First of all, one of the words in the reCAPTCHA is unknown. The other (known) word, is inaccessible via the API (from what I can tell). At best, you could display an error message with the user's input without the actual solution.
Comment #3
fizk CreditAttribution: fizk commentedI agree with jtwalters.
Comment #4
jerdiggity CreditAttribution: jerdiggity commentedPossible solution:
I just tested this and it appears as though it works, except it involves a change to the
captcha.module
file (maybe I'll create a patch and see if the maintainer[s] of captcha would be willing to implement it):Starting at line 590 of
captcha.module
:*Note: using the
%solution
placeholder for$recaptcha_img_to_html
will encode the html rendered by$recaptcha_img_to_html
, causing it not to show up as the original reCAPTCHA image.Thoughts/feedback?
Comment #5
hass CreditAttribution: hass commentedMoving to captcha module.
Comment #6
wundo CreditAttribution: wundo at Chuva Inc. for Galoa Science commented