guhongwei 4 years ago
parent
commit
4ef6cf8189
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/login.js

+ 1 - 1
app/service/login.js

@@ -35,7 +35,7 @@ class LoginService extends CrudService {
     // 将用户输入的密码进行加密并与查询到的用户数据密码相比对
     const pas = await this.createJwtPwd(passwd);
     // 如果两个密码不一致抛出异常
-    if (pas !== _user.passwd.secret && _user.isdel !== '0') {
+    if (pas !== _user.passwd.secret && _user.isdel !== '1') {
       throw new BusinessError(ErrorCode.BAD_PASSWORD);
     }
     if (_user.role === '4' || _user.role === '5') {