X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=9636789fbbbaafe754d100a9ad13bb12e11e99e1;hb=78418f5728259c024ac3b2016e1edd0ab794c9c0;hp=398c8c722b7d49d8558854f1d0b223cce3ab6d77;hpb=657aa49b874f80a85936ab5d070235d752366573;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 398c8c722b..9636789fbb 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -41,11 +41,11 @@ class ApiLogin extends ApiBase { parent::__construct( $main, $action, 'lg' ); } - protected function getDescriptionMessage() { + protected function getExtendedDescription() { if ( $this->getConfig()->get( 'EnableBotPasswords' ) ) { - return 'apihelp-login-description'; + return 'apihelp-login-extended-description'; } else { - return 'apihelp-login-description-nobotpasswords'; + return 'apihelp-login-extended-description-nobotpasswords'; } } @@ -134,7 +134,7 @@ class ApiLogin extends ApiBase { $session = $status->getValue(); $authRes = 'Success'; $loginType = 'BotPassword'; - } elseif ( !$botLoginData[2] ) { + } elseif ( !$botLoginData[2] || $status->hasMessage( 'login-throttled' ) ) { $authRes = 'Failed'; $message = $status->getMessage(); LoggerFactory::getInstance( 'authentication' )->info(