Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/private/Security/Hasher.php2
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);