Standardize password hashing work factor to 10 by default

This commit is contained in:
Kijin Sung 2017-02-15 11:34:39 +09:00
parent 45bde4d1f0
commit 6b0dd6c192
2 changed files with 3 additions and 3 deletions

View file

@ -141,12 +141,12 @@ class Password
$work_factor = $config->password_hashing_work_factor;
if (!$work_factor || $work_factor < 4 || $work_factor > 31)
{
$work_factor = 9;
$work_factor = 10;
}
}
else
{
$work_factor = 9;
$work_factor = 10;
}
return $work_factor;

View file

@ -77,7 +77,7 @@ class member extends ModuleObject {
}
if(!$config->password_hashing_work_factor)
{
$config->password_hashing_work_factor = 8;
$config->password_hashing_work_factor = 10;
}
if(!$config->password_hashing_auto_upgrade)
{