[ticket/17413] Fix setting solved state on valid confirm code

PHPBB-17413
This commit is contained in:
Marc Alexander 2024-10-15 20:09:21 +02:00
parent db25443bc5
commit 9eb18f351b
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 2 additions and 1 deletions

View file

@ -87,6 +87,7 @@ abstract class base implements plugin_interface
{
if ($this->confirm_id && hash_equals($this->code, $this->confirm_code))
{
$this->solved = true;
return true;
}

View file

@ -189,7 +189,7 @@ class turnstile extends base
'TURNSTILE_SITEKEY' => $this->config->offsetGet('captcha_turnstile_sitekey'),
'TURNSTILE_THEME' => $this->config->offsetGet('captcha_turnstile_theme'),
'U_TURNSTILE_SCRIPT' => self::SCRIPT_URL,
'CONFIRM_TYPE_REGISTRATION' => (int) $this->type->value,
'CONFIRM_TYPE_REGISTRATION' => $this->type->value,
]);
return 'captcha_turnstile.html';