From ed6f9fc93e08914d2e0f2e8d61d2e5d7178ccd0a Mon Sep 17 00:00:00 2001 From: William Hearn Date: Tue, 11 Oct 2016 23:49:35 -0400 Subject: [PATCH] Issue #2816921: User password + embedded_data migration not hashed --- core/modules/user/src/Plugin/migrate/destination/EntityUser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/user/src/Plugin/migrate/destination/EntityUser.php b/core/modules/user/src/Plugin/migrate/destination/EntityUser.php index b11d867..999f15d 100644 --- a/core/modules/user/src/Plugin/migrate/destination/EntityUser.php +++ b/core/modules/user/src/Plugin/migrate/destination/EntityUser.php @@ -99,6 +99,9 @@ protected function save(ContentEntityInterface $entity, array $old_destination_i if (isset($this->configuration['md5_passwords'])) { $entity->pass->value = 'U' . $this->password->hash($entity->pass->value); } + elseif (isset($this->configuration['plaintext_passwords'])) { + $entity->pass->value = $this->password->hash($entity->pass->value); + } } return parent::save($entity, $old_destination_id_values); } -- 2.5.4 (Apple Git-61)