Skip to content

Commit

Permalink
fix: 删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
afzw committed Feb 3, 2024
1 parent 02c504c commit 85731d6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/apis/auth/local-auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 85731d6

Please sign in to comment.