1
0
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:
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

@@ -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,