Last modified: 2007-06-05 13:31:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12055, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10055 - User object passed to AbortNewAccount hook should have more information
User object passed to AbortNewAccount hook should have more information
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-29 06:03 UTC by Zhen Lin
Modified: 2007-06-05 13:31 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Zhen Lin 2007-05-29 06:03:14 UTC
At the moment, the AbortNewAccount hook is passed a User object with very little information - most importantly, the email address entered on the form is not passed to the hook. As such, it is difficult to implement policies such as, "valid, unique email address required" for user account creation.

Adding a $u->setEmail( $this->mEmail ); line before the hook is called should solve this problem.
Comment 1 Yuri Astrakhan 2007-06-01 22:23:12 UTC
This does not appear to be an API bug. Changing component to unknown.
Comment 2 Rob Church 2007-06-05 13:31:08 UTC
Fixed in r22758.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links