1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-04 11:41:38 +02:00

Merge pull request #6855 from Derky/ticket/17547

[ticket/17547] Use confirm_type enum in captcha init()
This commit is contained in:
Marc Alexander
2025-09-26 15:03:53 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ class acp_captcha
global $phpbb_container;
$captcha = $phpbb_container->get('captcha.factory')->get_instance($selected);
$captcha->init(CONFIRM_REG);
$captcha->init(\phpbb\captcha\plugins\confirm_type::REGISTRATION);
$captcha->execute_demo();
garbage_collection();

View File

@@ -2408,7 +2408,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
case LOGIN_ERROR_ATTEMPTS:
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(CONFIRM_LOGIN);
$captcha->init(\phpbb\captcha\plugins\confirm_type::LOGIN);
// $captcha->reset();
$template->assign_vars(array(

View File

@@ -216,7 +216,7 @@ class ucp_login_link
case LOGIN_ERROR_ATTEMPTS:
$captcha = $phpbb_container->get('captcha.factory')->get_instance($config['captcha_plugin']);
$captcha->init(CONFIRM_LOGIN);
$captcha->init(\phpbb\captcha\plugins\confirm_type::LOGIN);
$template->assign_vars(array(
'CAPTCHA_TEMPLATE' => $captcha->get_template(),