Change devise config to speed up password encryption in tests

This commit is contained in:
luisramos0
2019-07-12 10:12:53 +01:00
parent 71b648e9fa
commit 18006ea9c8

View File

@@ -37,7 +37,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 = 20
config.stretches = Rails.env.test? ? 1 : 20
# Setup a pepper to generate the encrypted password.
config.pepper = Rails.configuration.secret_token