From 9affe4417ae983affdfae8c38ad1a2ba5ab23e08 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 22 Sep 2023 18:55:37 -0700 Subject: [PATCH 1/2] Fix incorrect password algorithm being exported from Appwrite --- src/Migration/Sources/Appwrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index 0a8692d..a79486d 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -321,7 +321,7 @@ private function exportUsers(int $batchSize) $user['$id'], $user['email'], $user['name'], - $user['password'] ? new Hash($user['password'], $user['hash']) : null, + $user['password'] ? new Hash($user['password'], algorithm: $user['hash']) : null, $user['phone'], $this->calculateTypes($user), $user['labels'] ?? [], From 46f7616fa456b991bc86ff3c53c8c434bf478d55 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 22 Sep 2023 19:03:53 -0700 Subject: [PATCH 2/2] Fix lint error --- src/Migration/Resources/Database/Attributes/IP.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Migration/Resources/Database/Attributes/IP.php b/src/Migration/Resources/Database/Attributes/IP.php index 5395a28..cc0dd91 100644 --- a/src/Migration/Resources/Database/Attributes/IP.php +++ b/src/Migration/Resources/Database/Attributes/IP.php @@ -9,9 +9,6 @@ class IP extends Attribute { protected ?string $default; - /** - * @param string $default - */ public function __construct(string $key, Collection $collection, bool $required = false, bool $array = false, string $default = null) { parent::__construct($key, $collection, $required, $array);