Transfer user records and encrypted passwords from the Debug to Authlogic program

Does anyone have any experience switching from Devise to Authlogic, particularly when it comes to encrypted passwords? I am currently using bcrypt in Devise and also using bcrypt in Authlogic.

+3
source share
1 answer

It should be easy. I assume that you know which fields Authlogic requires. One of them is password_salt. Make sure to use the Devise salt in the password_salt field.

At the top of the user model, add the following:

acts_as_authentic do |config|
  config.crypto_provider = Authlogic::CryptoProviders::BCrypt 
end

Also, I assume that you already have a BCrypt gem in your gemfile.

0
source

All Articles