mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
Merge branch '3.3.x'
This commit is contained in:
@@ -387,4 +387,15 @@ abstract class captcha_abstract
|
||||
* @return string the name of the class used to generate the captcha
|
||||
*/
|
||||
abstract function get_generator_class();
|
||||
|
||||
/**
|
||||
* Get language variable for error message when CAPTCHA is being shown due
|
||||
* to exceeding the maximum number of login attempts
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_login_error_attempts(): string
|
||||
{
|
||||
return 'LOGIN_ERROR_ATTEMPTS';
|
||||
}
|
||||
}
|
||||
|
@@ -352,4 +352,16 @@ class recaptcha_v3 extends captcha_abstract
|
||||
|
||||
return $language->lang('RECAPTCHA_INCORRECT');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function get_login_error_attempts(): string
|
||||
{
|
||||
global $language;
|
||||
|
||||
$language->add_lang('captcha_recaptcha');
|
||||
|
||||
return 'RECAPTCHA_V3_LOGIN_ERROR_ATTEMPTS';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user