Load password information when expiring
authorcsteipp <csteipp@wikimedia.org>
Thu, 28 Aug 2014 18:04:57 +0000 (11:04 -0700)
committercsteipp <csteipp@wikimedia.org>
Thu, 28 Aug 2014 18:04:57 +0000 (11:04 -0700)
commit3ab9d9964beaffdca22cc02a1771eab4dcce1d24
treeca8715e7c95a394456972e14df622a98c6f66c64
parentc2d0df09247636997f3881b7c0df3e0b32c09879
Load password information when expiring

Call loadPasswords when expiring the user's password, otherwise the
change is overwritten with the previous value.

This lets you do:
  $u = User::newFromName( 'User' );
  $u->expirePassword();
And the user will have to reset their password on the next login.

Change-Id: I47325dde1ce14280088efdc90ce7887b45e0dc6a
includes/User.php