devise icon indicating copy to clipboard operation
devise copied to clipboard

Set stretches to the minimum cost supported by the bcrypt algorithm in tests

Open sergey-alekseev opened this issue 6 years ago • 2 comments

During generating and setting encrypted_password by default BCrypt::Password.create is used. At the moment in the test environment the cost is set to 1. It is passed to BCrypt::Password.create and later set to 4 (BCrypt::Engine::MIN_COST) (1 -> 2). Observing encrypted_password being generated with the cost 4 while the cost 1 is specified via stretches may be confusing.

sergey-alekseev avatar Jul 06 '19 18:07 sergey-alekseev

I rebased over the latest master to resolve minor merge conflicts.

sergey-alekseev avatar Aug 19 '21 10:08 sergey-alekseev

@carlosantoniodasilva all checks have passed, no merge conflicts. Can you merge this?

sergey-alekseev avatar May 27 '22 12:05 sergey-alekseev