1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

[ticket/16655] Add support for custom error message when exceeding attempts

PHPBB3-16655
This commit is contained in:
Marc Alexander
2021-03-07 12:03:49 +01:00
parent b978fd9dc6
commit bf5f0bb8f7
4 changed files with 45 additions and 10 deletions

View File

@@ -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';
}
}