Adds support for importing password hashes used by "migratepassword" plugin

Adds setting to phpBB3 importer for importing passwords (default: off)
Plugin: https://github.com/discoursehosting/discourse-migratepassword
This commit is contained in:
Gerhard Schlager
2015-08-20 22:15:57 +02:00
parent 676416f478
commit 8c03dd16af
6 changed files with 15 additions and 2 deletions

View File

@ -16,6 +16,7 @@ module ImportScripts::PhpBB3
id: row[:user_id],
email: row[:user_email],
username: row[:username],
password: @settings.import_passwords ? row[:user_password] : nil,
name: @settings.username_as_name ? row[:username] : '',
created_at: Time.zone.at(row[:user_regdate]),
last_seen_at: row[:user_lastvisit] == 0 ? Time.zone.at(row[:user_regdate]) : Time.zone.at(row[:user_lastvisit]),