Skip to content

Commit

Permalink
Merge pull request #21 from utopia-php/fix-6303-fix-appwrite-user-pas…
Browse files Browse the repository at this point in the history
…sword-export

Fix incorrect password algorithm being exported from Appwrite
  • Loading branch information
christyjacob4 authored Sep 25, 2023
2 parents ade836d + 46f7616 commit 9392b47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/Migration/Resources/Database/Attributes/IP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Migration/Sources/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? [],
Expand Down

0 comments on commit 9392b47

Please sign in to comment.