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:
@@ -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();
|
||||
|
@@ -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(
|
||||
|
@@ -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(),
|
||||
|
Reference in New Issue
Block a user