mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17413] Fix setting solved state on valid confirm code
PHPBB-17413
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user