mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12960] Add tests for incomplete captcha
PHPBB3-12960
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace phpbb\captcha\plugins;
|
||||
|
||||
use phpbb\exception\runtime_exception;
|
||||
|
||||
class recaptcha extends captcha_abstract
|
||||
{
|
||||
private $response;
|
||||
@@ -55,10 +57,11 @@ class recaptcha extends captcha_abstract
|
||||
|
||||
/**
|
||||
* This function is implemented because required by the upper class, but is never used for reCaptcha.
|
||||
* @throws runtime_exception
|
||||
*/
|
||||
function get_generator_class()
|
||||
{
|
||||
throw new \Exception('No generator class given.');
|
||||
throw new runtime_exception('NO_GENERATOR_CLASS');
|
||||
}
|
||||
|
||||
function acp_page($id, $module)
|
||||
|
Reference in New Issue
Block a user