summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-01-21 09:03:58 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2020-01-23 10:48:42 +0000
commite186fecd167066bc202bf5117c162ce7c36a98dc (patch)
tree58fc6c46c2465dbd96f1683b879d2299fb1d89eb /lib/private
parent42756b46555a0dc056b0709d563347beb050bb02 (diff)
downloadnextcloud-server-e186fecd167066bc202bf5117c162ce7c36a98dc.tar.gz
nextcloud-server-e186fecd167066bc202bf5117c162ce7c36a98dc.zip
use getSystemValueInt
Co-Authored-By: kesselb <mail@danielkesselberg.de> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private')
-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 1c5a691455b..193c2775b90 100644
--- a/lib/private/Security/Hasher.php
+++ b/lib/private/Security/Hasher.php
@@ -64,9 +64,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);