From 27cdd467f50489f863bbec23de289668930551bc Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 4 Sep 2023 18:35:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Print=20`user.name`=20instead=20?= =?UTF-8?q?of=20`id`=20on=20auth.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/auth.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/auth.ts b/src/server/auth.ts index 1d0875f75..70ba1f873 100644 --- a/src/server/auth.ts +++ b/src/server/auth.ts @@ -157,15 +157,15 @@ export const constructAuthOptions = ( return null; } - Consola.log(`user ${user.id} is trying to log in. checking password...`); + Consola.log(`user ${user.name} is trying to log in. checking password...`); const isValidPassword = await bcrypt.compare(data.password, user.password); if (!isValidPassword) { - Consola.log(`password for user ${user.id} was incorrect`); + Consola.log(`password for user ${user.name} was incorrect`); return null; } - Consola.log(`user ${user.id} successfully authorized`); + Consola.log(`user ${user.name} successfully authorized`); return { id: user.id,