r39625 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39624‎ | r39625 | r39626 >
Date:02:00, 19 August 2008
Author:krimpet
Status:old
Tags:
Comment:
Run autocreated accounts through AbortNewAccount hooks
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -500,6 +500,14 @@
501501 return self::CREATE_BLOCKED;
502502 }
503503
 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+
504512 wfDebug( __METHOD__.": creating account\n" );
505513 $user = $this->initUser( $user, true );
506514 return self::SUCCESS;

Follow-up revisions

RevisionCommit summaryAuthorDate
r39657Revert r39625 "Run autocreated accounts through AbortNewAccount hooks"...brion19:11, 19 August 2008

Status & tagging log