1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/17414] Change handling of validate to new logic

PHPBB-17414
This commit is contained in:
Marc Alexander
2024-10-13 14:57:45 +02:00
parent c382f81222
commit 589fe70be6
4 changed files with 13 additions and 21 deletions

View File

@@ -293,10 +293,9 @@ class ucp_register
if ($config['enable_confirm'])
{
$vc_response = $captcha->validate();
if ($vc_response !== false)
if ($captcha->validate() !== true)
{
$error[] = $vc_response;
$error[] = $captcha->get_error();
}
if ($config['max_reg_attempts'] && $captcha->get_attempt_count() > $config['max_reg_attempts'])