# "password too short" on vbulletin import due to migratepasssword plugin

**URL:** https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164
**Category:** Development
**Created:** [August 7, 2019, 7:20pm UTC](https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164 "2019-08-07T19:20:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 7, 2019, 7:20pm UTC](https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164/1 "2019-08-07T19:20:41Z")

</div>

I’m running a vbulletin import. I’ve got a few users that are failing because the password is too short. I’m confused beacuse though the vbulletin importer does do this:

```
   password = [user["password"].presence, user["salt"].presence].compact.join(":")

```

That shouldn’t be trying to create a real Discourse password, should it?

For now I’ve modified `base.rb` to not raise an error if the user isn’t created. Hopefully these aren’t important members. 😉

Here’s the record causing the error:

```plaintext

Error on record: {:id=>46237, :name=>"ValidName", :username=>"ValidName", :password=>"ba3a7d6fd01adb600a8c57894931f4b6:PCmoKyv_pF-D}bXomgB+ugN[??70Sk", :email=>"wahtever@yahoo.com.ar", :merge=>true, :website=>"", :title=>"Amateur", :primary_group_id=>42, :created_at=>Tue, 30 Apr 2014 21:57:51 UTC +00:00, :last_seen_at=>Wed, 31 Dec 1969 16:00:00 UTC +00:00, :post_create_action=>#<Proc:0x00005653d822c2c0@script/import_scripts/vbulletin.rb:181>}

```

It’d be great if I could figure out how to catch these and “fix” the password. I just can’t tell what’s wrong, though.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 16, 2019, 3:29pm UTC](https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164/2 "2019-08-16T15:29:46Z")

</div>

It turns out that it’s due to the migratepassword plugin as discussed here:

> [@Migrate a phpBB3 forum to Discourse](https://meta.discourse.org/t/migrate-a-phpbb3-forum-to-discourse/30810/459):
>
> Looks like it’s triggering a bug in the migratepassword plugin. It works in my tests, so I’m not sure what’s happening here. I suggest you disable the plugin during the migration. It’s not needed during the migration anyway.
