Browse Source

Set argon defaults to prevent password_hash(): Memory cost is outside of allowed memory range on PHP 7.4 (#5094)

With the values 
````
'argon' => [
        'memory' => 1024,
        'threads' => 2,
        'time' => 2,
    ],
```
Hash::make() produces password_hash(): Memory cost is outside of allowed memory range on PHP 7.4
Patrick Heppler 5 years ago
parent
commit
86908e1eb4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      config/hashing.php

+ 3 - 3
config/hashing.php

@@ -44,9 +44,9 @@ return [
     */
 
     'argon' => [
-        'memory' => 1024,
-        'threads' => 2,
-        'time' => 2,
+        'memory' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
+        'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
+        'time' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
     ],
 
 ];