Commit 85982f3e authored by Quxl's avatar Quxl

x

parent bbb52060
......@@ -43,7 +43,7 @@ public class AdminTokenServiceImpl implements AdminTokenService {
Integer adminid = admin.getAdminid();
LoginToken token = new LoginToken(adminid);
session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60, true);
Cookie cookie = WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24, true);
if(cookie != null) {
String sql = "update fc_admin set token = ? where adminid = ?";
jdbcTemplate.executeUpdate(sql, cookie.getValue(), adminid);
......
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