Page MenuHomePhabricator

User object passed to AbortNewAccount hook should have more information
Closed, ResolvedPublic

Description

Author: lowzl

Description:
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.


Version: unspecified
Severity: enhancement

Details

Reference
bz10055

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:51 PM
bzimport set Reference to bz10055.
bzimport added a subscriber: Unknown Object (MLST).

This does not appear to be an API bug. Changing component to unknown.