Index: trunk/phase3/includes/SpecialUserlogin.php |
— | — | @@ -265,6 +265,11 @@ |
266 | 266 | $this->mainLoginForm( wfMsg( 'passwordtooshort', $wgMinimalPasswordLength ) ); |
267 | 267 | return false; |
268 | 268 | } |
| 269 | + |
| 270 | + # Set some additional data so the AbortNewAccount hook can be |
| 271 | + # used for more than just username validation |
| 272 | + $u->setEmail( $this->mEmail ); |
| 273 | + $u->setRealName( $this->mRealName ); |
269 | 274 | |
270 | 275 | $abortError = ''; |
271 | 276 | if( !wfRunHooks( 'AbortNewAccount', array( $u, &$abortError ) ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -59,6 +59,8 @@ |
60 | 60 | see docs/hooks.txt for details |
61 | 61 | * (bug 9769) Provide "watch this page" toggle on protection form |
62 | 62 | * (bug 9886) Provide clear example "stub link" in Special:Preferences |
| 63 | +* (bug 10055) Populate email address and real name properties of User objects |
| 64 | + passed to the 'AbortNewAccount' hook |
63 | 65 | |
64 | 66 | == Bugfixes since 1.10 == |
65 | 67 | |