config.php: ops, wrong name for the native captcha

This commit is contained in:
Zankaria
2024-08-15 16:33:56 +02:00
parent f7073d5d7e
commit 165ea5308a
4 changed files with 13 additions and 13 deletions

View File

@@ -630,12 +630,12 @@ if (isset($_POST['delete'])) {
// Check for CAPTCHA right after opening the board so the "return" link is in there.
try {
$provider = $config['captcha']['provider'];
$new_thread_capt = $config['captcha']['secureimage']['new_thread_capt'];
$new_thread_capt = $config['captcha']['native']['new_thread_capt'];
$dynamic = $config['captcha']['dynamic'];
// With our custom captcha provider
if (($provider === 'secureimage' && !$new_thread_capt)
|| ($provider === 'secureimage' && $new_thread_capt && $post['op'])) {
if (($provider === 'native' && !$new_thread_capt)
|| ($provider === 'native' && $new_thread_capt && $post['op'])) {
$query = $context->get(NativeCaptchaQuery::class);
$success = $query->verify($_POST['captcha_text'], $_POST['captcha_cookie']);