Skip to content

Commit

Permalink
update: platformPrivateKey还是留在session里吧
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzercn committed May 1, 2017
1 parent 1398437 commit 0c7c9d5
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ protected AuthenticationToken createToken(HttpServletRequest request) {
RSAPrivateKey platformPrivateKey = (RSAPrivateKey) request.getSession().getAttribute("platformPrivateKey");
if (platformPrivateKey != null) {
password = RSAUtil.decryptByPrivateKey(password, platformPrivateKey);
SecurityUtils.getSubject().getSession(true).removeAttribute("platformPrivateKey");
}
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 0c7c9d5

Please sign in to comment.