mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Standardize password hashing work factor to 10 by default
This commit is contained in:
parent
45bde4d1f0
commit
6b0dd6c192
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue