Skip to content

Commit

Permalink
workspaceId regular verification
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwenzea committed Aug 8, 2023
1 parent 95afff7 commit 0263473
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,12 @@ public Message getWorkspaceUsers(HttpServletRequest req) {
//获取工作空间
List<String> userList = new ArrayList<>();
String workspaceId = CookieUtils.getCookieWorkspaceId(req);
if (StringUtils.isNotBlank(workspaceId)) {
if (RegularUtil.matches(workspaceId)) {
userList.addAll(userService.workspaceUserQuery(req, workspaceId));
} else {
LOG.warn("Cannot find the workspaceID from DSS,perhaps the cookie value has been lost in request from: {}", req.getLocalAddr());
}
if (RegularUtil.matches(userList)){
return Message.ok().data("users", userList);
}else {
return Message.error("username regular verification failed");
}

return Message.ok().data("users", userList);
}

}

0 comments on commit 0263473

Please sign in to comment.