X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=14491da19f2dfd209236061ba6285a5f0d651ff0;hp=aa7e25e046476299eda0fe4af35e547c4cdf595d;hb=9c0ba336ff3b967841c992a5cf04fb904199301d;hpb=313dde5d06c42be1eb7da9127ec92bb5d360ddab diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index aa7e25e046..14491da19f 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -1,9 +1,5 @@ @gmail.com", * Daniel Cannon (cannon dot danielc at gmail dot com) * @@ -134,7 +130,11 @@ class ApiLogin extends ApiBase { $session = $status->getValue(); $authRes = 'Success'; $loginType = 'BotPassword'; - } elseif ( !$botLoginData[2] ) { + } elseif ( !$botLoginData[2] || + $status->hasMessage( 'login-throttled' ) || + $status->hasMessage( 'botpasswords-needs-reset' ) || + $status->hasMessage( 'botpasswords-locked' ) + ) { $authRes = 'Failed'; $message = $status->getMessage(); LoggerFactory::getInstance( 'authentication' )->info(