From a711cef1748dbc7393ee874d475478819fb20d69 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 8 Sep 2024 17:29:45 +0200 Subject: [PATCH] fix: don't log cleartext passwords --- app/api/auth/[...nextauth]/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/auth/[...nextauth]/options.ts b/app/api/auth/[...nextauth]/options.ts index 1e11242..c8d13f8 100644 --- a/app/api/auth/[...nextauth]/options.ts +++ b/app/api/auth/[...nextauth]/options.ts @@ -18,7 +18,7 @@ export const authOptions: NextAuthOptions = { console.log(adminUsername); console.log(adminPasswordHash); console.log(credentials.username); - console.log(credentials.password); + console.log("[password redacted]"); if (credentials.username == adminUsername) { const isValidPassword = await bcrypt.compare( credentials.password,