* through the web interface.
*/
private function setPasswordInternal( $str ) {
- $id = self::idFromName( $this->getName() );
+ $id = self::idFromName( $this->getName(), self::READ_LATEST );
if ( $id == 0 ) {
throw new LogicException( 'Cannot set a password for a user that is not in the database.' );
}
return Status::newFatal( 'userexists' );
}
$this->mId = $dbw->insertId();
+ self::$idCacheByName[$this->mName] = $this->mId;
// Clear instance cache other than user table data, which is already accurate
$this->clearInstanceCache();