Import Drupal user accounts into Rails without req

2019-07-17 09:53发布

问题:

I would like to import a series of Drupal user accounts into a new Rails project. I am using Devise for the user authentication in Rails.

I would like to be able to import the encrypted passwords from Drupal into rails so that users have a seamless experience when the site is migrated over.

Any ideas on how to do this?

回答1:

it seems that drupal stores the passwords encrypted with md5, so if in your rails application you'll check the md5 computed on the user input against the encrypted password stored in drupal, then you'll get the match