Index: trunk/phase3/includes/specials/SpecialUserlogin.php |
— | — | @@ -500,6 +500,14 @@ |
501 | 501 | return self::CREATE_BLOCKED; |
502 | 502 | } |
503 | 503 | |
| 504 | + $abortError = ''; |
| 505 | + if( !wfRunHooks( 'AbortNewAccount', array( $user->getName(), &$abortError ) ) ) { |
| 506 | + // Hook point to add extra creation throttles and blocks |
| 507 | + wfDebug( __METHOD__.": a hook blocked creation\n" ); |
| 508 | + $this->mainLoginForm( $abortError ); |
| 509 | + return self::ABORTED; |
| 510 | + } |
| 511 | + |
504 | 512 | wfDebug( __METHOD__.": creating account\n" ); |
505 | 513 | $user = $this->initUser( $user, true ); |
506 | 514 | return self::SUCCESS; |