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';
}
}
$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(