Index: trunk/phase3/includes/SpecialUserlogin.php |
— | — | @@ -364,6 +364,14 @@ |
365 | 365 | * @private |
366 | 366 | */ |
367 | 367 | function mailPassword() { |
| 368 | + global $wgUser, $wgOut; |
| 369 | + |
| 370 | + # Check against the rate limiter |
| 371 | + if( $wgUser->pingLimiter( 'mailpassword' ) ) { |
| 372 | + $wgOut->rateLimited(); |
| 373 | + return; |
| 374 | + } |
| 375 | + |
368 | 376 | if ( '' == $this->mName ) { |
369 | 377 | $this->mainLoginForm( wfMsg( 'noname' ) ); |
370 | 378 | return; |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1823,6 +1823,9 @@ |
1824 | 1824 | 'ip' => null, |
1825 | 1825 | 'subnet' => null, |
1826 | 1826 | ), |
| 1827 | + 'mailpassword' => array( |
| 1828 | + 'anon' => NULL, |
| 1829 | + ), |
1827 | 1830 | ); |
1828 | 1831 | |
1829 | 1832 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -255,6 +255,7 @@ |
256 | 256 | * Ignore the user and user talk namespaces on Special:Wantedpages |
257 | 257 | * Introduce NUMBEROFPAGES magic word |
258 | 258 | * (bug 5833) Introduce CURRENTVERSION magic word |
| 259 | +* (bug 5370) Allow throttling of password reminder requests with the rate limiter |
259 | 260 | |
260 | 261 | == Compatibility == |
261 | 262 | |