mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17413] Fix setting solved state on valid confirm code
PHPBB-17413
This commit is contained in:
parent
db25443bc5
commit
9eb18f351b
2 changed files with 2 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue