Commit fe56a993 authored by ma's avatar ma

parent 4ef078be
...@@ -50,8 +50,6 @@ public class LoginController { ...@@ -50,8 +50,6 @@ public class LoginController {
private String account; private String account;
@Value("${rsa.private_key}") @Value("${rsa.private_key}")
private String PRIVATE_KRY; private String PRIVATE_KRY;
@Value("${rsa.public_key}")
private String PUBLIC_KEY;
private static final String USER_NAME = "root"; private static final String USER_NAME = "root";
/** /**
...@@ -87,7 +85,6 @@ public class LoginController { ...@@ -87,7 +85,6 @@ public class LoginController {
LoginVo loginVo = new LoginVo(); LoginVo loginVo = new LoginVo();
loginVo.setAuthorization(token); loginVo.setAuthorization(token);
loginVo.setUpdateTime(user.getUpdateTime()); loginVo.setUpdateTime(user.getUpdateTime());
loginVo.setPubKey(PUBLIC_KEY);
UserUtils.setToken(dbUser.getUserId(), token); UserUtils.setToken(dbUser.getUserId(), token);
UserUtils.setTokenExp(dbUser.getUserId(), JwtUtil.getTokenExp()); UserUtils.setTokenExp(dbUser.getUserId(), JwtUtil.getTokenExp());
UserUtils.removeErrCnt(userName); UserUtils.removeErrCnt(userName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment