mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Added a comment about the stretch change
This commit is contained in:
parent
68bd6809a7
commit
372dfecf05
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ 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.
|
||||
# Limiting the stretches to just one in test env will increase the performance of
|
||||
# your tests dramatically if you create a lot of users.
|
||||
config.stretches = Rails.env.test? ? 1 : 10
|
||||
|
||||
# Setup a pepper to generate the encrypted password.
|
||||
|
|
Loading…
Reference in a new issue