Commit e899a720f73972e39ceb482af2e25d6bd33a1e2e
1 parent
c9ae9879
fix(auth): 解决移动端登录验证问题
Showing
1 changed file
with
2 additions
and
1 deletions
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/service/auth/AdminAuthServiceImpl.java
| ... | ... | @@ -129,7 +129,8 @@ public class AdminAuthServiceImpl implements AdminAuthService { |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | // 登录场景,验证是否存在 |
| 132 | - if (userService.getUserByMobile(reqVO.getMobile()) == null) { | |
| 132 | + AdminUserDO userByMobile = userService.getUserByMobile(reqVO.getMobile()); | |
| 133 | + if (userByMobile == null || CommonStatusEnum.isDisable(userByMobile.getStatus())) { | |
| 133 | 134 | throw exception(AUTH_MOBILE_NOT_EXISTS); |
| 134 | 135 | } |
| 135 | 136 | // 发送验证码 | ... | ... |