mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/15937] Amend Google reCAPTCHA v3 Migrations
PHPBB3-15937
This commit is contained in:
parent
d35b3b4792
commit
feb94b446a
1 changed files with 1 additions and 18 deletions
|
@ -38,24 +38,7 @@ class google_recaptcha_v3 extends \phpbb\db\migration\migration
|
||||||
|
|
||||||
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
|
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
|
||||||
{
|
{
|
||||||
$data[] = ['config.add', "recaptcha_v3_threshold_{$action}", 0.5];
|
$data[] = ['config.add', ["recaptcha_v3_threshold_{$action}", 0.5]];
|
||||||
}
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function revert_data()
|
|
||||||
{
|
|
||||||
$data = [
|
|
||||||
['config.remove', ['recaptcha_v3_key']],
|
|
||||||
['config.remove', ['recaptcha_v3_secret']],
|
|
||||||
['config.remove', ['recaptcha_v3_domain']],
|
|
||||||
['config.remove', ['recaptcha_v3_method']],
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach (\phpbb\captcha\plugins\recaptcha_v3::get_actions() as $action)
|
|
||||||
{
|
|
||||||
$data[] = ['config.remove', "recaptcha_v3_threshold_{$action}"];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue