X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=e4c4429eb3920bdb4cf869bad112b226efa0f9b9;hb=72266c7b35eab5ec7d8565c4964a156b2eacbbfe;hp=aa7e25e046476299eda0fe4af35e547c4cdf595d;hpb=aae0c8d42562d5d3f70cc18fa687ae331996b66f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index aa7e25e046..e4c4429eb3 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,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(