From 2d1f9365aa29362779c807e765663e811021375b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 26 Jun 2004 04:10:48 +0000 Subject: [PATCH] bug fixes for throttle feature --- includes/SpecialUserlogin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index d98f6bc111..700cf6cf49 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -132,10 +132,10 @@ class LoginForm { $key = "$wgDBname:acctcreate:ip:$wgIP"; $value = $wgMemc->incr( $key ); if ( !$value ) { - $wgMemc->set( $key, 0, 86400 ); + $wgMemc->set( $key, 1, 86400 ); } - if ( $value > $wgAccountCreationThrottle ) ) { - $this->throttleHit(); + if ( $value > $wgAccountCreationThrottle ) { + $this->throttleHit( $wgAccountCreationThrottle ); return; } } -- 2.20.1