mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14733] Use default cost factor in bcrypt constructor
PHPBB3-14733
This commit is contained in:
@@ -25,8 +25,9 @@ class bcrypt extends base
|
|||||||
*
|
*
|
||||||
* @param \phpbb\config\config $config phpBB config
|
* @param \phpbb\config\config $config phpBB config
|
||||||
* @param \phpbb\passwords\driver\helper $helper Password driver helper
|
* @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);
|
parent::__construct($config, $helper);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user