diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-01-21 11:03:58 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-02-21 16:51:44 +0300 |
commit | 7d1d76b2c93cd5d28f9ab27c822648247713145e (patch) | |
tree | 24d1f574182802da088d707d6089f6a54c802493 /lib | |
parent | d973bc7a7500f0261aabd541021464c972e3a2da (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.php | 6 |
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); |