From dd49bb4a0a6835f207f91875024185782304d057 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 22 Oct 2024 19:00:17 +0200 Subject: [PATCH] [ticket/17414] Remove idempotency and use user ip for check PHPBB-17414 --- phpBB/phpbb/captcha/plugins/turnstile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpBB/phpbb/captcha/plugins/turnstile.php b/phpBB/phpbb/captcha/plugins/turnstile.php index afd7a363b2..9a235edc3b 100644 --- a/phpBB/phpbb/captcha/plugins/turnstile.php +++ b/phpBB/phpbb/captcha/plugins/turnstile.php @@ -139,8 +139,7 @@ class turnstile extends base $form_data = [ 'secret' => $this->config['captcha_turnstile_secret'], 'response' => $turnstile_response, - 'remoteip' => $this->request->header('CF-Connecting-IP'), - //'idempotency_key' => $this->confirm_id, // check if we need this + 'remoteip' => $this->user->ip, ]; // Create guzzle client