1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/17413] Make turnstile captcha work on registration page

PHPBB-17413
This commit is contained in:
Marc Alexander
2024-10-13 11:04:59 +02:00
parent 01dd0b168a
commit 8290cdb7e7
7 changed files with 127 additions and 57 deletions

View File

@@ -19,6 +19,9 @@ abstract class base implements plugin_interface
/** @var string Confirm id hash */
protected string $confirm_id = '';
/** @var string Last error message */
protected string $last_error = '';
/**
* Constructor for abstract captcha base class
*
@@ -29,6 +32,22 @@ abstract class base implements plugin_interface
$this->db = $db;
}
/**
* {@inheritDoc}
*/
public function is_solved(): bool
{
return $this->solved;
}
/**
* {@inheritDoc}
*/
public function get_error(): string
{
return $this->last_error;
}
/**
* @inheritDoc
*/