From: Roan Kattouw Date: Thu, 4 Sep 2008 19:48:48 +0000 (+0000) Subject: (bug 15479) action=login no longer sets wait parameter when result="Throttled"; regre... X-Git-Tag: 1.31.0-rc.0~45484 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=def0843a312f64262f17a9844147272314e8a27b;p=lhc%2Fweb%2Fwiklou.git (bug 15479) action=login no longer sets wait parameter when result="Throttled"; regression from r40054 --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 1726ef117e..108ce814e5 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -113,7 +113,9 @@ class ApiLogin extends ApiBase { $result['details'] = 'Your IP address is blocked from account creation'; break; case LoginForm :: THROTTLED : + global $wgPasswordAttemptThrottle; $result['result'] = 'Throttled'; + $result['wait'] = $wgPasswordAttemptThrottle['seconds']; break; default : ApiBase :: dieDebug(__METHOD__, "Unhandled case value: {$authRes}");