asd123a20 3 年之前
父节点
当前提交
bc16badb08
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/login.js

+ 1 - 1
app/service/login.js

@@ -24,7 +24,7 @@ class JwtLoginService extends NafService {
       throw new BusinessError(ErrorCode.DATA_NOT_EXIST, '用户不存在');
     }
     if (!entity.password || entity.password !== password) {
-      throw new BusinessError(ErrorCode.BAD_PASSWORD);
+      throw new BusinessError(ErrorCode.BAD_PASSWORD, '密码错误');
     }
     const userinfo = _.pick(entity, [ 'userName', 'openid' ]);
     const { secret, expiresIn = '1h', issuer = 'naf' } = this.config.jwt;