X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=9636789fbbbaafe754d100a9ad13bb12e11e99e1;hp=aa7e25e046476299eda0fe4af35e547c4cdf595d;hb=25390162c755eb19077310fc04b8f3d19bf1dc23;hpb=fea3bbcdae4f052f769ab466df6e1f5d47d1383c diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index aa7e25e046..9636789fbb 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -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(