diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index e8e8a55b6..d4a480f0a 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -54,7 +54,7 @@ Devise.setup do |config| # ==> Configuration for :database_authenticatable # For bcrypt, this is the cost for hashing the password and defaults to 10. If # using other encryptors, it sets how many times you want the password re-encrypted. - config.stretches = 10 + config.stretches = Rails.env.test? ? 1 : 10 # Define which will be the encryption algorithm. Devise also supports encryptors # from others authentication tools as :clearance_sha1, :authlogic_sha512 (then