无需用户更改密码即可将 Drupal 用户帐户导入 Rails [英] Import Drupal user accounts into Rails without requiring users change their passwords

查看:36
本文介绍了无需用户更改密码即可将 Drupal 用户帐户导入 Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一系列 Drupal 用户帐户导入到 Rails 项目中.我在 Rails 中使用 Devise 进行用户身份验证.

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 加密的密码,因此如果在您的 Rails 应用程序中,您将根据存储的加密密码检查根据用户输入计算的 md5在 drupal 中,您将获得匹配

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆