devise - Migrating passwords from PHP site to Rails site -


i have php site several thousand users using phpass password hashing. i've written new rails site using devise authentication. i'm trying seamlessly migrate users on new rails site. know way can migrate passwords on new site?

i thought simple copying salt over, it's not simple.

i found this question/answer, can't figure out phpass salt is, , how use translate passwords devise can understand.

any appreciated!

reading code, seems encrypt the salt , hash together. you'd have write custom code in ruby mimic hash, salting, , encrypting match password.

i take different approach.

i use opportunity clean house. i'd import users, , when ready switch over, send out e-mail users you've upgraded security of system, , b/c of need need reset passwords, , provide them one-time link reset passwords.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -