update argon2 instances

This commit is contained in:
Damodar Lohani
2025-10-16 03:34:45 +00:00
parent 9849b9d678
commit e06349e803
+6 -6
View File
@@ -351,9 +351,9 @@ App::post('/v1/users/argon2')
->action(function (string $userId, string $email, string $password, string $name, Response $response, Document $project, Database $dbForProject, Hooks $hooks) {
$argon2 = new Argon2();
$argon2
->setMemoryCost(2048)
->setTimeCost(4)
->setThreads(3);
->setMemoryCost(7168)
->setTimeCost(5)
->setThreads(1);
$user = createUser($argon2, $userId, $email, $password, null, $name, $project, $dbForProject, $hooks);
@@ -1379,9 +1379,9 @@ App::patch('/v1/users/:userId/password')
// Create Argon2 hasher with default settings
$hasher = new Argon2();
$hasher
->setMemoryCost(2048)
->setTimeCost(4)
->setThreads(3);
->setMemoryCost(7168)
->setTimeCost(5)
->setThreads(1);
$newPassword = $hasher->hash($password);