From 72e9c495fc6e31319344b065e893fb6e7c8e8318 Mon Sep 17 00:00:00 2001 From: wpdebruin Date: Fri, 20 Nov 2020 11:47:23 +0100 Subject: [PATCH] Update BCrypt.cfc enabled workfactor in hasspassword --- models/BCrypt.cfc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/BCrypt.cfc b/models/BCrypt.cfc index c4a1cfb..2b3d45e 100644 --- a/models/BCrypt.cfc +++ b/models/BCrypt.cfc @@ -34,7 +34,7 @@ component singleton threadsafe{ string function hashPassword( required string password, workFactor=variables.settings.workFactor, - salt =generateSalt() + salt =generateSalt( arguments.workFactor ) ){ return variables.bcrypt.hashpw( arguments.password, arguments.salt ); } @@ -107,4 +107,4 @@ component singleton threadsafe{ private boolean function isBCryptLoaded(){ return !isNull( variables.bcrypt ); } -} \ No newline at end of file +}