• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Q&A captcha dosent work

Kaiser

Well-known member
#1
Just tested it by trying to register on my forum, everytime you enter the answer it like just dissapears completely everytime.. it dosent work and wont let members join.
 

Brogan

XenForo moderator
Staff member
#2
Using a simple Q of What is 2+2 and an answer of 4, I get the following:

Please correct the following errors:
  1. You did not complete the CAPTCHA verification properly. Please try again.
 

Kier

XenForo Developer
Staff member
#4
There is an omission in the captcha_question template that can cause the question to invalidate itself when filling in the form.

To correct it, edit the captcha_question template and look for this:
HTML:
class="textCtrl"
then replace it with this:
HTML:
class="textCtrl OptOut"
 

Kaiser

Well-known member
#5
There is an omission in the captcha_question template that can cause the question to invalidate itself when filling in the form.

To correct it, edit the captcha_question template and look for this:
HTML:
class="textCtrl"
then replace it with this:
HTML:
class="textCtrl OptOut"
Thanks for the update :) One question, is it okay having 1 Q&A, or should I use multiple?
 

Miko

Well-known member
#10
There is an omission in the captcha_question template that can cause the question to invalidate itself when filling in the form.

To correct it, edit the captcha_question template and look for this:
HTML:
class="textCtrl"
then replace it with this:
HTML:
class="textCtrl OptOut"

Hi Kier,
that fixed it but now there is no Ajax validation for the Q&A Captcha.

Is that the new default behaviour or is it going to be fixed in B7?

thanks
 

Kier

XenForo Developer
Staff member
#11
Hi Kier,
that fixed it but now there is no Ajax validation for the Q&A Captcha.

Is that the new default behaviour or is it going to be fixed in B7?

thanks
That's intentional. The CAPTCHA is intended to be submitted along with the rest of the form, and can only be checked once before being invalidated. If it were checked with AJAX before the form is submitted, it would have to generate a whole new question, rendering the answer pointless.