diff options
author | MichaIng <micha@dietpi.com> | 2020-05-01 12:42:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 12:42:13 +0300 |
commit | 229570badfa9cef0b395e3fd55a251ff39d0ed12 (patch) | |
tree | fdf4b8ac1d8a62e9e5f8f0d96f65301424129eee /lib | |
parent | c724eb24d5cb1e4e3bb7ad44224dcc85c53df246 (diff) |
Apply Argon2 options for Argon2id hashing as well
Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Security/Hasher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php index 2ed21e7e427..a51508ba8e9 100644 --- a/lib/private/Security/Hasher.php +++ b/lib/private/Security/Hasher.php @@ -65,7 +65,7 @@ class Hasher implements IHasher { public function __construct(IConfig $config) { $this->config = $config; - if (\defined('PASSWORD_ARGON2I')) { + if (\defined('PASSWORD_ARGON2ID') || \defined('PASSWORD_ARGON2I')) { // password_hash fails, when the minimum values are undershot. // In this case, apply minimum. $this->options['threads'] = max($this->config->getSystemValueInt('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS), 1); |