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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10055 - User object passed to AbortNewAccount hook should have more information
User object passed to AbortNewAccount hook should have more information
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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.