From 85731d6d5395820e2e79ecb56f16719950e222bd Mon Sep 17 00:00:00 2001 From: afzw Date: Sat, 3 Feb 2024 17:31:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/auth/local-auth.controller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/apis/auth/local-auth.controller.ts b/src/apis/auth/local-auth.controller.ts index 2ecd22c..7ce80e1 100755 --- a/src/apis/auth/local-auth.controller.ts +++ b/src/apis/auth/local-auth.controller.ts @@ -30,7 +30,6 @@ class LocalAuthController { if (findUserErr) return next(new AppError({ message: `查询用户失败 => ${findUserErr}` })) if (!user) return next(new AppError({ statusCode: 401, message: '邮箱或密码错误' })) const enPass = genPBK(loginInfo.password, user.salt) - console.log(enPass, '\n', user.password) if (enPass !== user.password) return next(new AppError({ statusCode: 401, message: '邮箱或密码错误' })) req.login(user, async (error: unknown) => {