|
@@ -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;
|