mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17414] Change handling of validate to new logic
PHPBB-17414
This commit is contained in:
@@ -176,9 +176,8 @@ class db extends base
|
||||
// Every auth module is able to define what to do by itself...
|
||||
if ($show_captcha)
|
||||
{
|
||||
$captcha->init(CONFIRM_LOGIN);
|
||||
$vc_response = $captcha->validate();
|
||||
if ($vc_response)
|
||||
$captcha->init(\phpbb\captcha\plugins\plugin_interface::CONFIRM_LOGIN);
|
||||
if ($captcha->validate() !== true)
|
||||
{
|
||||
return array(
|
||||
'status' => LOGIN_ERROR_ATTEMPTS,
|
||||
|
Reference in New Issue
Block a user