diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 536adcf128..1dfa5c2603 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -1378,9 +1378,10 @@ App::patch('/v1/users/:userId/password') // Create Argon2 hasher with default settings $hasher = new Argon2(); - $hasher->setMemoryCost(2048); - $hasher->setTimeCost(4); - $hasher->setThreads(3); + $hasher + ->setMemoryCost(2048) + ->setTimeCost(4) + ->setThreads(3); $newPassword = $hasher->hash($password);