diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-01-21 09:03:58 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-01-21 09:04:53 +0100 |
commit | 56c3ba6ac783dd663986e133365cfce60c76b52b (patch) | |
tree | 5bc32c8dd9c9e2b92841997fb7ea4fed9c3db991 /lib | |
parent | 171bb982290b300edb9997948c2a11b3f4ba5d3e (diff) | |
download | nextcloud-server-56c3ba6ac783dd663986e133365cfce60c76b52b.tar.gz nextcloud-server-56c3ba6ac783dd663986e133365cfce60c76b52b.zip |
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.php | 6 |
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); |