Skip to content

Commit

Permalink
Merge pull request #4 from wpdebruin/development
Browse files Browse the repository at this point in the history
Update BCrypt.cfc
  • Loading branch information
lmajano authored Nov 20, 2020
2 parents 9cee474 + 72e9c49 commit 8a690c1
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 8a690c1

Please sign in to comment.