From 157a8d6dd6cc45fe832db8614afeb8e0f43a8b07 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Tue, 26 Aug 2008 22:24:44 +0000 Subject: [PATCH] Reset password throttles on login --- includes/specials/SpecialUserlogin.php | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.20.1