From 4cb63068dec63227667f6fd93243eee8d03f42aa Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 16 Oct 2025 02:07:17 +0000 Subject: [PATCH] improve install loop --- src/Appwrite/Platform/Tasks/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/Install.php b/src/Appwrite/Platform/Tasks/Install.php index c70ced33ee..b210a020b9 100644 --- a/src/Appwrite/Platform/Tasks/Install.php +++ b/src/Appwrite/Platform/Tasks/Install.php @@ -150,6 +150,8 @@ class Install extends Action $input = []; + $password = new Password(); + $token = new Token(); foreach ($vars as $var) { if (!empty($var['filter']) && ($interactive !== 'Y' || !Console::isInteractive())) { if ($data && $var['default'] !== null) { @@ -158,13 +160,11 @@ class Install extends Action } if ($var['filter'] === 'token') { - $token = new Token(); $input[$var['name']] = $token->generate(); continue; } if ($var['filter'] === 'password') { - $password = new Password(); $input[$var['name']] = $password->generate(); continue; }