From 0dcb1965bed7f89175128b9354b561824b32af87 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Mon, 16 Sep 2024 05:52:51 +0530 Subject: [PATCH] Change setup.ts to use password input instead of plaintext --- scripts/setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.ts b/scripts/setup.ts index 1365fec5..32376692 100644 --- a/scripts/setup.ts +++ b/scripts/setup.ts @@ -54,7 +54,7 @@ if (DATABASE_URL) { const host = await question('input', 'Postgres host', 'localhost'); const port = await question('input', 'Postgres port', '5432'); const user = await question('input', 'Postgres user', 'ditto'); - const password = await question('input', 'Postgres password', 'ditto'); + const password = await question('password', 'Postgres password', true); const database = await question('input', 'Postgres database', 'ditto'); vars.DATABASE_URL = `postgres://${user}:${password}@${host}:${port}/${database}`; }