Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -475,7 +475,6 @@ |
476 | 476 | $this->load(); |
477 | 477 | |
478 | 478 | if ( $this->mUsername == '' ) { |
479 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::NO_NAME ) ); |
480 | 479 | return self::NO_NAME; |
481 | 480 | } |
482 | 481 | |
— | — | @@ -487,24 +486,20 @@ |
488 | 487 | // If the user doesn't have a login token yet, set one. |
489 | 488 | if ( !self::getLoginToken() ) { |
490 | 489 | self::setLoginToken(); |
491 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::NEED_TOKEN ) ); |
492 | 490 | return self::NEED_TOKEN; |
493 | 491 | } |
494 | 492 | // If the user didn't pass a login token, tell them we need one |
495 | 493 | if ( !$this->mToken ) { |
496 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::NEED_TOKEN ) ); |
497 | 494 | return self::NEED_TOKEN; |
498 | 495 | } |
499 | 496 | |
500 | 497 | $throttleCount = self::incLoginThrottle( $this->mUsername ); |
501 | 498 | if ( $throttleCount === true ) { |
502 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::THROTTLED ) ); |
503 | 499 | return self::THROTTLED; |
504 | 500 | } |
505 | 501 | |
506 | 502 | // Validate the login token |
507 | 503 | if ( $this->mToken !== self::getLoginToken() ) { |
508 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::WRONG_TOKEN ) ); |
509 | 504 | return self::WRONG_TOKEN; |
510 | 505 | } |
511 | 506 | |
— | — | @@ -525,7 +520,6 @@ |
526 | 521 | # user choose a different wiki name. |
527 | 522 | $u = User::newFromName( $this->mUsername ); |
528 | 523 | if( !( $u instanceof User ) || !User::isUsableName( $u->getName() ) ) { |
529 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, self::ILLEGAL ) ); |
530 | 524 | return self::ILLEGAL; |
531 | 525 | } |
532 | 526 | |
— | — | @@ -533,7 +527,6 @@ |
534 | 528 | if ( 0 == $u->getID() ) { |
535 | 529 | $status = $this->attemptAutoCreate( $u ); |
536 | 530 | if ( $status !== self::SUCCESS ) { |
537 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, $status ) ); |
538 | 531 | return $status; |
539 | 532 | } else { |
540 | 533 | $isAutoCreated = true; |
— | — | @@ -554,7 +547,6 @@ |
555 | 548 | // Give general extensions, such as a captcha, a chance to abort logins |
556 | 549 | $abort = self::ABORTED; |
557 | 550 | if( !wfRunHooks( 'AbortLogin', array( $u, $this->mPassword, &$abort, &$this->mAbortLoginErrorMsg ) ) ) { |
558 | | - wfRunHooks( 'LoginAuthenticateAudit', array( $u, $this->mPassword, $abort ) ); |
559 | 551 | return $abort; |
560 | 552 | } |
561 | 553 | |