将Drupal用户帐户导入Rails,而不需要用户更改其密码 [英] Import Drupal user accounts into Rails without requiring users change their passwords
问题描述
我想将一系列Drupal用户帐户导入到新的 Rails项目中。我正在使用Devise进行Rails中的用户身份验证。
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.
我希望能够将加密的密码从Drupal导入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?
推荐答案
似乎drupal 存储使用 md5 $加密的密码c $ c>
,所以如果在您的rails应用程序中,您将根据存储在drupal中的加密密码检查用户输入上的md5,然后您将获得匹配
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
这篇关于将Drupal用户帐户导入Rails,而不需要用户更改其密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!