[ticket/14733] Use default cost factor in bcrypt constructor

PHPBB3-14733
This commit is contained in:
Marc Alexander 2016-08-16 21:08:00 +02:00
parent 1d40c0f43b
commit 297376ee94
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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);