]> source.dussan.org Git - nextcloud-server.git/commitdiff
use getSystemValueInt
authorblizzz <blizzz@arthur-schiwon.de>
Tue, 21 Jan 2020 08:03:58 +0000 (09:03 +0100)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 21 Feb 2020 13:51:44 +0000 (14:51 +0100)
Co-Authored-By: kesselb <mail@danielkesselberg.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Security/Hasher.php

index b1a3216ec720d5dc563404b764040822757abfb9..696fd671361be39af6e395ca08cf04f1ae301001 100644 (file)
@@ -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);