From 28ac6c93555fbf53ceb48523e53a431d4a4913d5 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 18 Dec 2022 09:37:13 +0000 Subject: [PATCH] fix validator --- src/Appwrite/Auth/Validator/PasswordHistory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/Validator/PasswordHistory.php b/src/Appwrite/Auth/Validator/PasswordHistory.php index e262e2394b..9848f2c946 100644 --- a/src/Appwrite/Auth/Validator/PasswordHistory.php +++ b/src/Appwrite/Auth/Validator/PasswordHistory.php @@ -13,9 +13,11 @@ class PasswordHistory extends Password { protected array $history; - public function __construct(array $history) + public function __construct(array $history, string $algo, array $algoOptions = []) { $this->history = $history; + $this->algo = $algo; + $this->algoOptions = $algoOptions; } /**