diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-08-16 21:08:00 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-10-03 22:09:12 +0200 |
commit | 297376ee949f3afe6ad2bd6849be8b8115a1adbb (patch) | |
tree | c16845ea49f52753f13783055a4bbd43af66ba2d /phpBB/phpbb/passwords/driver | |
parent | 1d40c0f43b366638de16a99a874ce1475249ade0 (diff) | |
download | forums-297376ee949f3afe6ad2bd6849be8b8115a1adbb.tar forums-297376ee949f3afe6ad2bd6849be8b8115a1adbb.tar.gz forums-297376ee949f3afe6ad2bd6849be8b8115a1adbb.tar.bz2 forums-297376ee949f3afe6ad2bd6849be8b8115a1adbb.tar.xz forums-297376ee949f3afe6ad2bd6849be8b8115a1adbb.zip |
[ticket/14733] Use default cost factor in bcrypt constructor
PHPBB3-14733
Diffstat (limited to 'phpBB/phpbb/passwords/driver')
-rw-r--r-- | phpBB/phpbb/passwords/driver/bcrypt.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/passwords/driver/bcrypt.php b/phpBB/phpbb/passwords/driver/bcrypt.php index 39fb5e5cf1..eb1aeeeb76 100644 --- a/phpBB/phpbb/passwords/driver/bcrypt.php +++ b/phpBB/phpbb/passwords/driver/bcrypt.php @@ -25,8 +25,9 @@ class bcrypt extends base * * @param \phpbb\config\config $config phpBB config * @param \phpbb\passwords\driver\helper $helper Password driver helper + * @param int $cost_factor Hashing cost factor (optional) */ - public function __construct(\phpbb\config\config $config, helper $helper, $cost_factor) + public function __construct(\phpbb\config\config $config, helper $helper, $cost_factor = 10) { parent::__construct($config, $helper); |