|
@@ -42,6 +42,7 @@ import org.springblade.core.redis.cache.BladeRedis;
|
|
|
import org.springblade.core.secure.BladeUser;
|
|
|
import org.springblade.core.secure.utils.AuthUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
+import org.springblade.core.tool.constant.BladeConstant;
|
|
|
import org.springblade.core.tool.utils.*;
|
|
|
import org.springblade.modules.api.request.MerchantRegisterRequest;
|
|
|
import org.springblade.modules.auth.enums.UserEnum;
|
|
@@ -328,6 +329,9 @@ public class LoginController extends BladeController {
|
|
|
return R.fail("操作失败");
|
|
|
}
|
|
|
CacheUtil.clear(USER_CACHE);
|
|
|
+
|
|
|
+ //下线用户
|
|
|
+ JwtUtil.removeAccessToken(BladeConstant.ADMIN_TENANT_ID, String.valueOf(user.getId()));
|
|
|
return R.success("操作成功");
|
|
|
}
|
|
|
|