From 402082d1a461a29e07a5589223bbb44355098562 Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Thu, 11 Jan 2024 10:59:23 +0800 Subject: [PATCH] =?UTF-8?q?(*)=20=E7=99=BB=E5=BD=95=E4=B8=8D=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/auth/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/app/lib/controllers/auth/index.js b/api/app/lib/controllers/auth/index.js index 705cafe..d5b049b 100644 --- a/api/app/lib/controllers/auth/index.js +++ b/api/app/lib/controllers/auth/index.js @@ -13,6 +13,7 @@ async function login(ctx, next) { const params = ctx.request.body; let password = Hex.stringify(MD5(params.password)); const userRes = await models.User.findOne({ + attributes: { exclude: ["password"] }, where: { username: params.username, password: password,