Commit b68dd1e1f1560ac7248e455af7762adf31561db1
1 parent
e91fc70f
fix:【system 系统功能】解决登录未禁用数据权限,前端带上旧token导致报错
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/auth/AdminAuthServiceImpl.java
| ... | ... | @@ -6,6 +6,7 @@ import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; |
| 6 | 6 | import cn.iocoder.yudao.framework.common.util.monitor.TracerUtils; |
| 7 | 7 | import cn.iocoder.yudao.framework.common.util.servlet.ServletUtils; |
| 8 | 8 | import cn.iocoder.yudao.framework.common.util.validation.ValidationUtils; |
| 9 | +import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission; | |
| 9 | 10 | import cn.iocoder.yudao.module.system.api.logger.dto.LoginLogCreateReqDTO; |
| 10 | 11 | import cn.iocoder.yudao.module.system.api.sms.SmsCodeApi; |
| 11 | 12 | import cn.iocoder.yudao.module.system.api.sms.dto.code.SmsCodeUseReqDTO; |
| ... | ... | @@ -97,6 +98,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { |
| 97 | 98 | } |
| 98 | 99 | |
| 99 | 100 | @Override |
| 101 | + @DataPermission(enable = false) | |
| 100 | 102 | public AuthLoginRespVO login(AuthLoginReqVO reqVO) { |
| 101 | 103 | // 校验验证码 |
| 102 | 104 | validateCaptcha(reqVO); | ... | ... |