Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -429,7 +429,8 @@ |
430 | 430 | * creation. |
431 | 431 | */ |
432 | 432 | public function authenticateUserData() { |
433 | | - global $wgUser, $wgAuth; |
| 433 | + global $wgUser, $wgAuth, $wgMemc; |
| 434 | + |
434 | 435 | if ( $this->mName == '' ) { |
435 | 436 | return self::NO_NAME; |
436 | 437 | } |
— | — | @@ -457,7 +458,6 @@ |
458 | 459 | $count = $wgPasswordAttemptThrottle['count']; |
459 | 460 | $period = $wgPasswordAttemptThrottle['seconds']; |
460 | 461 | |
461 | | - global $wgMemc; |
462 | 462 | $throttleCount = $wgMemc->get( $throttleKey ); |
463 | 463 | if ( !$throttleCount ) { |
464 | 464 | $wgMemc->add( $throttleKey, 1, $period ); // start counter |