Browse Source

(*) 登录不返回密码

master
liujiangyong 10 months ago
parent
commit
402082d1a4
  1. 1
      api/app/lib/controllers/auth/index.js

1
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,

Loading…
Cancel
Save