0

I'm using the migrate module to migrate users from a Drupal 5 site to a Drupal 6 site.

MigrateDestinationUser assumes that the source passwords will be plaintext which isn't the case in Drupal 5. Is there any way around this assumption?

1

As per http://drupal.org/node/1349758, you need to add a complete function:

$this->addFieldMapping('pass', 'source_password');
...
public function complete($account, $row) {
  db_update('users')
    ->fields(array('pass' => $row->source_password))
    ->condition('uid', $account->uid)
    ->execute();
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.