|
@@ -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') {
|