Commit b874b46f authored by Quxl's avatar Quxl

x

parent e73480e7
......@@ -49,7 +49,7 @@ public class UserTokenServiceImpl implements UserTokenService {
session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true);
if(cookie != null) {
String sql = "update fc_user set token = ?, login_ip = ?, login_time = ? where uid = ?";
String sql = "update fc_user set token = ?, last_login_ip = ?, last_login_time = ? where uid = ?";
String loginIp = ServletUtil.remoteIp(WebMvcConfig.getRequest());
jdbcTemplate.executeUpdate(sql, cookie.getValue(), loginIp, System.currentTimeMillis()/1000, uid);
}
......
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