mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Change devise config to speed up password encryption in tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user