You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added the log_rounds config option to my test config file to speed up the tests, but no matter what value I put it doesn't seem to make a difference.
config/config.test.exs:
# Speed up our test suite
config :comeonin, :bcrypt_log_rounds, 4
I tried bumping the number up to 200 to see if it was taking effect, and the tests ran in exactly the same time. I also added the configuration to config/config.exs to be 100% sure it was being loaded, and got the same results.
The text was updated successfully, but these errors were encountered:
Try changing it to 14 or 16. That should make a big difference.
200 won't work because the maximum number of log_rounds is 31 (and the minimum is 4).
To truly verify that it's working or not, check the hashes that are produced - they should start with "$2b$" and then the next two numbers will tell you the number of log_rounds.
The important part is that you create a new user or change the password on the user after you've implemented the changes whenever you change this in order to see any difference.
I've added the
log_rounds
config option to my test config file to speed up the tests, but no matter what value I put it doesn't seem to make a difference.config/config.test.exs:
I tried bumping the number up to 200 to see if it was taking effect, and the tests ran in exactly the same time. I also added the configuration to
config/config.exs
to be 100% sure it was being loaded, and got the same results.The text was updated successfully, but these errors were encountered: