Commit a27a6698 authored by Quxl's avatar Quxl

x

parent 4f19b224
......@@ -85,6 +85,8 @@ public class AdminTokenServiceImpl implements AdminTokenService {
@Override
public void doLogout() {
String sql = "update fc_admin set token = ? where adminid = ?";
jdbcTemplate.executeUpdate(sql, null, this.getToken().getId());
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
......
......@@ -84,6 +84,8 @@ public class MemberTokenServiceImpl implements MemberTokenService {
@Override
public void doLogout() {
String sql = "update fc_member set token = ? where id = ?";
jdbcTemplate.executeUpdate(sql, null, this.getToken().getId());
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
......
......@@ -81,6 +81,8 @@ public class UserTokenServiceImpl implements UserTokenService {
@Override
public void doLogout() {
String sql = "update fc_user set token = ? where uid = ?";
jdbcTemplate.executeUpdate(sql, null, this.getToken().getId());
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
......
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