mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/14610] Don't log an error if the Q&A captcha has been solved
https://tracker.phpbb.com/browse/PHPBB3-14610 PHPBB3-14610
This commit is contained in:
parent
4cdec74e94
commit
3572f4c92e
1 changed files with 5 additions and 0 deletions
|
@ -224,6 +224,11 @@ class qa
|
||||||
|
|
||||||
if ($this->is_solved() || empty($this->question_text) || !count($this->question_ids))
|
if ($this->is_solved() || empty($this->question_text) || !count($this->question_ids))
|
||||||
{
|
{
|
||||||
|
// don't log an error if the captcha has been solved
|
||||||
|
if ($this->is_solved())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
/** @var \phpbb\log\log_interface $phpbb_log */
|
/** @var \phpbb\log\log_interface $phpbb_log */
|
||||||
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_CAPTCHA', time(), array($user->lang('CONFIRM_QUESTION_MISSING')));
|
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_CAPTCHA', time(), array($user->lang('CONFIRM_QUESTION_MISSING')));
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue