From: Fran Rogers Date: Sat, 16 Aug 2008 18:43:02 +0000 (+0000) Subject: Patch from MaxSem re bug 15162 - handle throttling in the login API X-Git-Tag: 1.31.0-rc.0~45868 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=b63b22fc4716287ac91d77ed0655ceb7a4b46f8b;p=lhc%2Fweb%2Fwiklou.git Patch from MaxSem re bug 15162 - handle throttling in the login API --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 4d54ee75bb..23b5d29c6a 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -139,6 +139,9 @@ class ApiLogin extends ApiBase { $result['result'] = 'CreateBlocked'; $result['details'] = 'Your IP address is blocked from account creation'; break; + case LoginForm :: THROTTLED : + $result['result'] = 'Throttled'; + break; default : ApiBase :: dieDebug(__METHOD__, 'Unhandled case value'); }