Skip to content

Commit

Permalink
bug: 过滤掉锁定用户 #2269
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlxu committed Jun 17, 2024
1 parent c4744a2 commit 3993ac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class UserController @Autowired constructor(

@ApiOperation("校验用户token")
@PostMapping("/token")
@Deprecated("no need work")
fun checkToken(@RequestParam uid: String, @RequestParam token: String): Response<Boolean> {
preCheckContextUser(uid)
userService.findUserByUserToken(uid, token) ?: return ResponseBuilder.success(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object UserQueryHelper {
Criteria.where(TUser::pwd.name).`is`(hashPwd),
Criteria.where("tokens.id").`is`(pwd),
Criteria.where("tokens.id").`is`(sm3HashPwd)
).and(TUser::userId.name).`is`(userId)
).and(TUser::userId.name).`is`(userId).and(TUser::locked.name).`is`(false)
return query(criteria)
}

Expand Down

0 comments on commit 3993ac7

Please sign in to comment.