From def0843a312f64262f17a9844147272314e8a27b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 4 Sep 2008 19:48:48 +0000 Subject: [PATCH] (bug 15479) action=login no longer sets wait parameter when result="Throttled"; regression from r40054 --- includes/api/ApiLogin.php | 2 ++ 1 file changed, 2 insertions(+) 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}"); -- 2.20.1