From 211ef301ed04ca04521592f4bfe90c1d90dd8258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD=E8=8A=B1=E9=A3=8E=E9=9B=A8=E6=9B=B4=E4=BC=A4?= =?UTF-8?q?=E6=98=A5?= <1915766026@qq.com> Date: Wed, 26 Oct 2022 08:16:11 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=86=85=E5=AE=B9=EF=BC=9A?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 落花风雨更伤春 <1915766026@qq.com> --- server/controllers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/user.js b/server/controllers/user.js index 09019d3..a231006 100644 --- a/server/controllers/user.js +++ b/server/controllers/user.js @@ -15,7 +15,7 @@ class UserController{ ctx.throw(400, '用户名不能为空!'); } if(!password){ - ctx.throw(400, '用户名不能为空!'); + ctx.throw(400, '密码不能为空!'); } let result = await User .findOne({ -- Gitee