mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 12:22:03 +02: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
@ -224,6 +224,11 @@ class qa
|
||||
|
||||
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 */
|
||||
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_CAPTCHA', time(), array($user->lang('CONFIRM_QUESTION_MISSING')));
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user