# Drupal 7 Migration Questions

**URL:** <https://meta.discourse.org/t/drupal-7-migration-questions/71539>\
**Category:** Development\
**Created:** [6 Octubre, 2017 18:17 UTC](https://meta.discourse.org/t/drupal-7-migration-questions/71539 "2017-10-06T18:17:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)\
**Post date:** [6 Octubre, 2017 18:17 UTC](https://meta.discourse.org/t/drupal-7-migration-questions/71539/1 "2017-10-06T18:17:04Z")

</div>

Has anyone imported Drupal 7 passwords into Discourse? This is one area where I’m stuck on my migration.

I found [this plugin](https://github.com/communiteq/discourse-migratepassword/blob/master/plugin.rb) and [this](https://stackoverflow.com/a/19274472/1365699) [info](https://api.drupal.org/api/drupal/includes%21password.inc/7.x), but am not sure how to modify it for Drupal 7.

If I don’t migrate the passwords (leaving the `password_hash` and `salt` fields as `nil`), will users still be able to request new passwords? I’m a little worried about that in either case, because there are 20,000 users, and they will start getting summary emails from Discourse, which might send a lot of people to the site at once. If there is a bug with passwords or resetting them, things might get chaotic.

Temporary email address were saved during the last test import – something like `tmpemail111@example.com`. I don’t know why the first part of that email address was used for the `name` field and why the `email` field is blank. The email address does appear on the site itself for this user.

Is enough data included here in this sample user to have the new site run correctly in production?

```
=> [#<User:0x0000000723ab23
  id: 197,
  username: "SomeUser",
  created_at: Sat, 30 Apr 2012 13:17:11 UTC +00:00,
  updated_at: Mon, 01 Oct 2017 10:19:37 UTC +00:00,
  name: "Tmpemail111", 
  seen_notification_id: 0,
  last_posted_at: nil,
  email: nil,
  password_hash: nil,
  salt: nil,
  active: true,
  username_lower: "someuser",
  last_seen_at: Sat, 30 Apr 2012 13:17:11 UTC +00:00,
  admin: false,
  last_emailed_at: Mon, 02 Oct 2017 23:19:33 UTC +00:00,
  trust_level: 1,
  approved: false,
  approved_by_id: nil,
  approved_at: nil,
  previous_visit_at: nil,
  suspended_at: nil,
  suspended_till: nil,
  date_of_birth: nil,
  views: 0,
  flag_level: 0,
  ip_address: nil,
  moderator: false,
  blocked: false,
  title: nil,
  uploaded_avatar_id: nil,
  locale: nil,
  suspended_at: nil,
  suspended_till: nil,
  date_of_birth: nil,
  views: 0,
  flag_level: 0,
  ip_address: nil,
  moderator: false,
  blocked: false,
  title: nil,
  uploaded_avatar_id: nil,
  locale: nil,
  primary_group_id: nil,
  registration_ip_address: nil,
  trust_level_locked: false,
  staged: false,
  first_seen_at: nil>]

```

---

_[View the full topic](https://meta.discourse.org/t/drupal-7-migration-questions/71539)._
