Page MenuHomePhabricator

AddNewAccount hook isn't run when auto-creating external accounts
Closed, ResolvedPublic

Description

In the authenticateUserData() function in SpecialUserLogin.php, initUser() is called, and none of the normal steps in addNewAccount() and addNewAccountInternal() are taken.

Can we make one of the addNewAccount() functions more generic so that everything that creates a user uses one of these functions?


Version: 1.12.x
Severity: normal

Details

Reference
bz11734

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:58 PM
bzimport set Reference to bz11734.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 22963 has been marked as a duplicate of this bug. ***

AuthManager (T91699) will replace most of the current authentication code; it will introduce a new LocalUserCreated hook which will run on autocreation as well.

Tgr claimed this task.

AddNewAccount has been deprecated and superseded by LocalUserCreated which handles autocreation.