Skip to content
Snippets Groups Projects
Unverified Commit ad606196 authored by MichaIng's avatar MichaIng Committed by Roeland Jago Douma
Browse files

Fix Argon2 options checks


The minimum for memory cost is 8 KiB per thread. Threads must be checked and set first to allow checking against the correct memory cost mimimum.
Options are now applied the following way:
- If config.php contains the setting with an integer higher or equal to the minimum, it is applied.
- If config.php contains the setting with an integer lower than the minimum, the minimum is applied.
- If config.php does not contain the setting or with no integer value, the PHP default is applied.

Signed-off-by: default avatarMichaIng <micha@dietpi.com>
Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent a1c1b354
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment