mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chaining
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user