Explorar o código

Update hashing config, set custom bcrypt or argon settings

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
24bc57700f
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      config/hashing.php

+ 4 - 4
config/hashing.php

@@ -29,7 +29,7 @@ return [
     */
     */
 
 
     'bcrypt' => [
     'bcrypt' => [
-        'rounds' => 10,
+        'rounds' => env('BCRYPT_COST', 10),
     ],
     ],
 
 
     /*
     /*
@@ -44,9 +44,9 @@ return [
     */
     */
 
 
     'argon' => [
     'argon' => [
-        'memory'  => 1024,
-        'threads' => 2,
-        'time'    => 2,
+        'memory'  => env('ARGON_MEM', 1024),
+        'threads' => env('ARGON_THREADS', 2),
+        'time'    => env('ARGON_TIME', 2),
     ],
     ],
 
 
 ];
 ];