mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +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;
|
||||
|
||||
/**
|
||||
* Google reCAPTCHA v3 plugin.
|
||||
*/
|
||||
@@ -86,12 +88,12 @@ class recaptcha_v3 extends captcha_abstract
|
||||
*
|
||||
* Not needed by this CAPTCHA plugin.
|
||||
*
|
||||
* @throws \Exception
|
||||
* @throws runtime_exception
|
||||
* @return void
|
||||
*/
|
||||
public function get_generator_class()
|
||||
{
|
||||
throw new \Exception('No generator class given.');
|
||||
throw new runtime_exception('NO_GENERATOR_CLASS');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user