You are here

public function DrupalUser7Migration::complete in Drupal-to-Drupal data migration 7.2

Implementation of Migration::complete().

Parameters

$account:

$row:

Overrides DrupalUserMigration::complete

File

d7/user.inc, line 20
Implementation of DrupalUserMigration for Drupal 7 sources.

Class

DrupalUser7Migration
@file Implementation of DrupalUserMigration for Drupal 7 sources.

Code

public function complete($account, $row) {
  parent::complete($account, $row);

  // The incoming password was encrypted - user_save added an extra round of
  // encryption, we need to replace that with the original encrypted value.
  $account->pass = $row->pass;
  db_update('users')
    ->fields(array(
    'pass' => $account->pass,
  ))
    ->condition('uid', $account->uid)
    ->execute();
}