(bug 10055) Populate email address and real name properties of User objects passed...
authorRob Church <robchurch@users.mediawiki.org>
Tue, 5 Jun 2007 13:30:48 +0000 (13:30 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 5 Jun 2007 13:30:48 +0000 (13:30 +0000)
RELEASE-NOTES
includes/SpecialUserlogin.php

index 7736a6c..446032f 100644 (file)
@@ -59,6 +59,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   see docs/hooks.txt for details
 * (bug 9769) Provide "watch this page" toggle on protection form
 * (bug 9886) Provide clear example "stub link" in Special:Preferences
+* (bug 10055) Populate email address and real name properties of User objects
+  passed to the 'AbortNewAccount' hook
 
 == Bugfixes since 1.10 ==
 
index 7fa01d2..f5c6a51 100644 (file)
@@ -265,6 +265,11 @@ class LoginForm {
                        $this->mainLoginForm( wfMsg( 'passwordtooshort', $wgMinimalPasswordLength ) );
                        return false;
                }
+               
+               # Set some additional data so the AbortNewAccount hook can be
+               # used for more than just username validation
+               $u->setEmail( $this->mEmail );
+               $u->setRealName( $this->mRealName );
 
                $abortError = '';
                if( !wfRunHooks( 'AbortNewAccount', array( $u, &$abortError ) ) ) {