mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Speed up tests by defaulting to 1 stretch in test env
This commit is contained in:
parent
866b35d27c
commit
68bd6809a7
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,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
|
||||
|
||||
# Setup a pepper to generate the encrypted password.
|
||||
# config.pepper = <%= SecureRandom.hex(64).inspect %>
|
||||
|
|
Loading…
Reference in a new issue