mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
don't pick a new question without an explicit reset call
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9997 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -354,7 +354,8 @@ class phpbb_captcha_qa
|
|||||||
if (strlen($error))
|
if (strlen($error))
|
||||||
{
|
{
|
||||||
// okay, incorrect answer. Let's ask a new question.
|
// okay, incorrect answer. Let's ask a new question.
|
||||||
$this->new_attempt();
|
// $this->new_attempt();
|
||||||
|
$this->solved = false;
|
||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -433,7 +434,7 @@ class phpbb_captcha_qa
|
|||||||
function load_answer()
|
function load_answer()
|
||||||
{
|
{
|
||||||
global $db, $user;
|
global $db, $user;
|
||||||
|
|
||||||
$sql = 'SELECT con.question_id, attempts, question_text, strict
|
$sql = 'SELECT con.question_id, attempts, question_text, strict
|
||||||
FROM ' . CAPTCHA_QA_CONFIRM_TABLE . ' con, ' . CAPTCHA_QUESTIONS_TABLE . " qes
|
FROM ' . CAPTCHA_QA_CONFIRM_TABLE . ' con, ' . CAPTCHA_QUESTIONS_TABLE . " qes
|
||||||
WHERE con.question_id = qes.question_id
|
WHERE con.question_id = qes.question_id
|
||||||
|
Reference in New Issue
Block a user