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
Post a Comment