From: Andrew Garrett Date: Tue, 26 Aug 2008 22:24:44 +0000 (+0000) Subject: Reset password throttles on login X-Git-Tag: 1.31.0-rc.0~45637 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=157a8d6dd6cc45fe832db8614afeb8e0f43a8b07;p=lhc%2Fweb%2Fwiklou.git Reset password throttles on login --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 00c93d6513..82a1ac99fd 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -520,6 +520,11 @@ class LoginForm { } $wgUser->setCookies(); + // Reset the throttle + $key = wfMemcKey( 'password-throttle', wfGetIP(), md5( $this->mName ) ); + global $wgMemc; + $wgMemc->delete( $key ); + if( $this->hasSessionCookie() || $this->mSkipCookieCheck ) { /* Replace the language object to provide user interface in correct * language immediately on this first page load.