Bug: T119021
Change-Id: I5e0599d1d045b0389a7825fddc2b346e4cfd001d
* through the web interface.
*/
private function setPasswordInternal( $str ) {
* 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.' );
}
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();
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();
// Clear instance cache other than user table data, which is already accurate
$this->clearInstanceCache();