dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5ef72
)
(bug 15479) action=login no longer sets wait parameter when result="Throttled"; regre...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Thu, 4 Sep 2008 19:48:48 +0000
(19:48 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Thu, 4 Sep 2008 19:48:48 +0000
(19:48 +0000)
includes/api/ApiLogin.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiLogin.php
b/includes/api/ApiLogin.php
index
1726ef1
..
108ce81
100644
(file)
--- 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}");