Skip to content

Commit

Permalink
Update UserController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
XingToMax authored Jun 15, 2018
1 parent e78b5b3 commit b5baf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cn/nuaa/tomax/controller/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ResultCause login(String name, String password) throws IOException {
HttpSession session = request.getSession();
session.removeAttribute("user");
if (result.getCode().equals(ResultCause.SUCCESS_CODE)){
session.setAttribute("user",userService.getUserInfo(name));
session.setAttribute(session.getId(),userService.getUserInfo(name));
}
return result;
}
Expand Down

0 comments on commit b5baf7c

Please sign in to comment.