Disallow User::setPassword() on users not in database
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 30 Oct 2015 15:19:12 +0000 (11:19 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 30 Oct 2015 15:33:58 +0000 (11:33 -0400)
commitb6f5529236c9ed319624b9130a5432d16dcf8a32
tree70878f8ff12ea475376a22f2ef3fe228e412038d
parenteb8d6eb754cc00e44ee27914639db762c0f3b6f6
Disallow User::setPassword() on users not in database

Change I2c736ad mostly removed the password handling from the User
object, but left in a little password handling to preserve the existing
ability to call $user->setPassword() before the user was actually added
to the database. That ability is now removed.

Bug: T47716
Change-Id: Id3d40742f2e2b197ad6facd149cc6350006bf289
includes/User.php
maintenance/createAndPromote.php