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
path: root/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-01-21 11:03:58 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-02-21 16:51:44 +0300
commit7d1d76b2c93cd5d28f9ab27c822648247713145e (patch)
tree24d1f574182802da088d707d6089f6a54c802493 /lib
parentd973bc7a7500f0261aabd541021464c972e3a2da (diff)
use getSystemValueInt
Co-Authored-By: kesselb <mail@danielkesselberg.de> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Security/Hasher.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php
index b1a3216ec72..696fd671361 100644
--- a/lib/private/Security/Hasher.php
+++ b/lib/private/Security/Hasher.php
@@ -62,9 +62,9 @@ class Hasher implements IHasher {
$this->config = $config;
$this->options = [
- 'memory_cost' => (int)$this->config->getSystemValue('hashingMemoryCost', PASSWORD_ARGON2_DEFAULT_MEMORY_COST),
- 'time_cost' => (int)$this->config->getSystemValue('hashingTimeCost', PASSWORD_ARGON2_DEFAULT_TIME_COST),
- 'threads' => (int)$this->config->getSystemValue('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS),
+ 'memory_cost' => $this->config->getSystemValueInt('hashingMemoryCost', PASSWORD_ARGON2_DEFAULT_MEMORY_COST),
+ 'time_cost' => $this->config->getSystemValueInt('hashingTimeCost', PASSWORD_ARGON2_DEFAULT_TIME_COST),
+ 'threads' => $this->config->getSystemValueInt('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS),
];
$hashingCost = $this->config->getSystemValue('hashingCost', null);