Skip to content

Commit

Permalink
Update BCrypt.cfc
Browse files Browse the repository at this point in the history
enabled workfactor in hasspassword
  • Loading branch information
wpdebruin authored Nov 20, 2020
1 parent 9cee474 commit 72e9c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/BCrypt.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down Expand Up @@ -107,4 +107,4 @@ component singleton threadsafe{
private boolean function isBCryptLoaded(){
return !isNull( variables.bcrypt );
}
}
}

0 comments on commit 72e9c49

Please sign in to comment.