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:
@@ -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'])
|
||||
|
Reference in New Issue
Block a user