1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-05 04:01:49 +02:00

[ticket/17547] Use confirm_type enum in captcha init()

PHPBB-17547
This commit is contained in:
Derky
2025-09-25 17:22:52 +02:00
parent 2baac73d33
commit f9da7a78cf
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(),