summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Sansbury2011-11-30 17:04:16 (GMT)
committer Mike Ryan2011-12-20 18:39:27 (GMT)
commit71bb3bf7fd61ba6f748579af40961f7e27a843dd (patch)
tree38ebaeb8609bc513ab04d2413073ef2d4880a242
parent5ec3448730f8f76a47577abaa2e3f09df2d92b07 (diff)
Issue #1357186: Do not update md5 passwords if $account->pass is NULL for migrations with User destinations.
-rw-r--r--plugins/destinations/user.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/destinations/user.inc b/plugins/destinations/user.inc
index ba70116..1c812d0 100644
--- a/plugins/destinations/user.inc
+++ b/plugins/destinations/user.inc
@@ -178,7 +178,7 @@ class MigrateDestinationUser extends MigrateDestinationEntity {
$newaccount = user_save($old_account, (array)$account);
migrate_instrument_stop('user_save');
if ($newaccount) {
- if ($this->md5Passwords) {
+ if ($this->md5Passwords && !empty($account->pass)) {
// Ape the Drupal 6 -> Drupal 7 upgrade, which encrypts the MD5 text in the
// modern way, and marks it with a prepended U so it recognizes and fixes it
// up at login time.