mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue